Projekt

Obecné

Profil

Stáhnout (488 Bajtů) Statistiky
| Větev: | Revize:
1
var baseGetTag = require('./_baseGetTag'),
2
    isObjectLike = require('./isObjectLike');
3

    
4
/** `Object#toString` result references. */
5
var argsTag = '[object Arguments]';
6

    
7
/**
8
 * The base implementation of `_.isArguments`.
9
 *
10
 * @private
11
 * @param {*} value The value to check.
12
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
13
 */
14
function baseIsArguments(value) {
15
  return isObjectLike(value) && baseGetTag(value) == argsTag;
16
}
17

    
18
module.exports = baseIsArguments;
(78-78/634)