UNPKG

bbo

Version:

bbo is a utility library of zero dependencies for javascript.

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