UNPKG

lenye_base

Version:

基础方法

11 lines (8 loc) 188 B
'use strict'; /** * is typeof type */ var isTypeof = (val, type) => { return Object.prototype.toString.call(val).slice(8, -1).toLowerCase() === type; }; module.exports = isTypeof;