Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
utf8mb4
Commit Description:
utf8mb4
'use strict' ;
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol . toStringTag === 'symbol' ;
var toStr = Object . prototype . toString ;
var isStandardArguments = function isArguments ( value ) {
if ( hasToStringTag && value && typeof value === 'object' && Symbol . toStringTag in value ) {
return false ;
}
return toStr . call ( value ) === '[object Arguments]' ;
};
var isLegacyArguments = function isArguments ( value ) {
if ( isStandardArguments ( value )) {
return true ;
}
return value !== null &&
typeof value === 'object' &&
typeof value . length === 'number' &&
value . length >= 0 &&
toStr . call ( value ) !== '[object Array]' &&
toStr . call ( value . callee ) === '[object Function]' ;
};
var supportsStandardArguments = ( function () {
return isStandardArguments ( arguments );
}());
isStandardArguments . isLegacyArguments = isLegacyArguments ; // for tests
module . exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments ;
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings