File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
4
4
function isArray ( obj ) {
5
5
if ( obj !== null ) {
6
- return toString . call ( obj ) === "[object Array]" ;
6
+ return Object . prototype . toString . call ( obj ) === "[object Array]" ;
7
7
} else {
8
8
return false ;
9
9
}
10
10
}
11
11
12
12
function isObject ( obj ) {
13
13
if ( obj !== null ) {
14
- return toString . call ( obj ) === "[object Object]" ;
14
+ return Object . prototype . toString . call ( obj ) === "[object Object]" ;
15
15
} else {
16
16
return false ;
17
17
}
24
24
}
25
25
26
26
// Check if they are the same type.
27
- var firstType = toString . call ( first ) ;
28
- if ( firstType !== toString . call ( second ) ) {
27
+ var firstType = Object . prototype . toString . call ( first ) ;
28
+ if ( firstType !== Object . prototype . toString . call ( second ) ) {
29
29
return false ;
30
30
}
31
31
// We know that first and second have the same type so we can just check the
1332
1332
}
1333
1333
} ,
1334
1334
getTypeName : function ( obj ) {
1335
- switch ( toString . call ( obj ) ) {
1335
+ switch ( Object . prototype . toString . call ( obj ) ) {
1336
1336
case "[object String]" :
1337
1337
return "string" ;
1338
1338
case "[object Number]" :
You can’t perform that action at this time.
0 commit comments