f20eee005ed3da65d901acc20b5c0b0adb6792ba19d81b7b811370cf85997c81b14b212dcd74ef9ff3e33aacf62abb94db2776c86c64f633e6630cfff66b82 379 B

1234567891011121314151617181920
  1. define( [
  2. "../var/class2type",
  3. "../var/toString"
  4. ], function( class2type, toString ) {
  5. "use strict";
  6. function toType( obj ) {
  7. if ( obj == null ) {
  8. return obj + "";
  9. }
  10. // Support: Android <=2.3 only (functionish RegExp)
  11. return typeof obj === "object" || typeof obj === "function" ?
  12. class2type[ toString.call( obj ) ] || "object" :
  13. typeof obj;
  14. }
  15. return toType;
  16. } );