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
2275
var 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);
    }
fork icon0
star icon2
watch icon0

1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
    ret[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++)
fork icon0
star icon0
watch icon0

+ 13 other calls in file