OSDN Git Service

c77ba95ad5b4aefc607fe817e7ae960a791a9b62
[bytom/vapor.git] / tools / side_chain_tool / web / node_modules / jquery / src / core / toType.js
1 define( [
2         "../var/class2type",
3         "../var/toString"
4 ], function( class2type, toString ) {
5
6 "use strict";
7
8 function toType( obj ) {
9         if ( obj == null ) {
10                 return obj + "";
11         }
12
13         // Support: Android <=2.3 only (functionish RegExp)
14         return typeof obj === "object" || typeof obj === "function" ?
15                 class2type[ toString.call( obj ) ] || "object" :
16                 typeof obj;
17 }
18
19 return toType;
20 } );