1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| export const isString = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'String' }
export const isNumber = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Number' }
export const isBoolean = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Boolean' }
export const isFunction = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Function' }
export const isNull = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Null' }
export const isUndefined = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Undefined' }
export const isObj = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Object' }
export const isArray = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Array' }
export const isDate = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Date' }
export const isRegExp = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'RegExp' }
export const isError = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Error' }
export const isSymbol = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Symbol' }
export const isPromise = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Promise' }
export const isSet = (e) => { return Object.prototype.toString.call(e).slice(8, -1) === 'Set' }
|