How to use the isArguments function from underscore
Find comprehensive JavaScript underscore.isArguments code examples handpicked from public code repositorys.
2266 2267 2268 2269 2270 2271 2272 2273 2274 2275var flatten = function(input, shallow, output) { if (shallow && _.every(input, _.isArray)) { return concat.apply(output, input); } each(input, function(value) { if (_.isArray(value) || _.isArguments(value)) { shallow ? push.apply(output, value) : flatten(value, shallow, output); } else { output.push(value); }
1708 1709 1710 1711 1712 1713 1714 1715 1716 1717ret[i] = v[i]; } return ret; } // XXX: Use something better than underscore's isArray if (_.isArray(v) || _.isArguments(v)) { // For some reason, _.map doesn't work in this context on Opera (weird test // failures). ret = []; for (i = 0; i < v.length; i++)
+ 13 other calls in file
underscore.keys is the most popular function in underscore (11266 examples)