Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
add model solution
Commit Description:
add model solution
// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = require ( './_cof' );
var TAG = require ( './_wks' )( 'toStringTag' );
// ES3 wrong here
var ARG = cof ( function () { return arguments ; }()) == 'Arguments' ;
// fallback for IE11 Script Access Denied error
var tryGet = function ( it , key ) {
try {
return it [ key ];
} catch ( e ) { /* empty */ }
};
module . exports = function ( it ) {
var O , T , B ;
return it === undefined ? 'Undefined' : it === null ? 'Null'
// @@toStringTag case
: typeof ( T = tryGet ( O = Object ( it ), TAG )) == 'string' ? T
// builtinTag case
: ARG ? cof ( O )
// ES3 arguments fallback
: ( B = cof ( O )) == 'Object' && typeof O . callee == 'function' ? 'Arguments' : B ;
};
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