UNPKG

@mokelao/leancloud-library

Version:

基于leancloud的js封装库

2 lines (1 loc) 602 B
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var typeOf=function(t,e){var o=_typeof(t);return"object"!==o?e?o.charAt(0).toUpperCase()+o.slice(1,o.length)==e:o.charAt(0).toUpperCase()+o.slice(1,o.length):e?Object.prototype.toString.call(t).replace(/^\[object (\S+)\]$/,"$1")==e:Object.prototype.toString.call(t).replace(/^\[object (\S+)\]$/,"$1")},helper={typeOf:typeOf};module.exports=helper;