mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
adding an isArguments checker and enabling iteration (using each) over JS object hashes that have numeric length properties
This commit is contained in:
12
index.html
12
index.html
@@ -813,6 +813,18 @@ _.isElement(jQuery('body')[0]);
|
||||
=> false
|
||||
_.isArray([1,2,3]);
|
||||
=> true
|
||||
</pre>
|
||||
|
||||
<p id="isArguments">
|
||||
<b class="header">isArguments</b><code>_.isArguments(object)</code>
|
||||
<br />
|
||||
Returns <i>true</i> if <b>object</b> is an Arguments object.
|
||||
</p>
|
||||
<pre>
|
||||
(function(){ return _.isArguments(arguments); })(1, 2, 3);
|
||||
=> true
|
||||
_.isArguments([1,2,3]);
|
||||
=> false
|
||||
</pre>
|
||||
|
||||
<p id="isFunction">
|
||||
|
||||
Reference in New Issue
Block a user