Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
add is.args
Browse files Browse the repository at this point in the history
  • Loading branch information
mrDarcyMurphy committed Sep 24, 2013
1 parent 68476e9 commit c81762d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/is.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@
return x.valueOf && isNaN(x) || true
},

/**
* Is the subject an arguments object?
*
* @method array
* @param {Arguments} subject, required
*/
args: function(x) {
return Object.prototype.toString.call(x) == '[object Arguments]'
},

/**
* Is the subject an array?
*
Expand Down

0 comments on commit c81762d

Please sign in to comment.