Code coverage report for lang/isArguments.js

Statements: 83.33% (5 / 6)      Branches: 25% (1 / 4)      Functions: 75% (3 / 4)      Lines: 80% (4 / 5)     

All files » lang/ » isArguments.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 161       1   6             1    
define(['./isKind'], function (isKind) {
 
    /**
     */
    var isArgs = isKind(arguments, 'Arguments')?
            function(val){
                return isKind(val, 'Arguments');
            } :
            function(val){
                // Arguments is an Object on IE7
                return !!(val && Object.prototype.hasOwnProperty.call(val, 'callee'));
            };
 
    return isArgs;
});