Skip to content

isArguments ​

js
_.isArguments(value)

检查 value 是否可能是 arguments 对象。

¥Checks if value is likely an arguments object.

新增于 ​

¥Since

0.1.0

参数 ​

¥Arguments

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

    ¥value ()*: The value to check.

返回 ​

¥Returns

(布尔):如果 value 是 arguments 对象,则返回 true,否则返回 false。

¥(boolean): Returns true if value is an arguments object, else false.

示例 ​

¥Example

js
_.isArguments(function() { return arguments; }());
// => true

_.isArguments([1, 2, 3]);
// => false

Lodash v4.17 中文网 - 粤ICP备13048890号