Showing 2 of 2 total issues
Function only
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function only(whitelist, obj) {
if (arguments.length === 1) {
return only.bind(null, whitelist)
}
Avoid deeply nested control flow statements. Open
Open
if (val.length > 0) {
ret[key] = val
}