阅读(2797) (0)

Lodash _.isArguments

2021-09-22 10:19:04 更新

_.isArguments(value)

检查 value 是否是一个类 arguments 对象。

添加版本

0.1.0

参数

  1. value (*): 要检查的值。

返回

(boolean): 如果value是一个 arguments 对象 返回 true,否则返回 false。

例子

_.isArguments(function() { return arguments; }());
// => true
 _.isArguments([1, 2, 3]);
// => false