Showing 1 of 1 total issue
Function exports
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(fields) {
var args = arguments;
return (is.array(fields) ? fields : Object.keys(fields))
.reduce(function(obj, field) {
var child, value;