UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

11 lines (7 loc) 245 B
'use strict'; var toString = Object.prototype.toString , id = toString.call(true); module.exports = function (x) { return (typeof x === 'boolean') || ((typeof x === 'object') && ((x instanceof Boolean) || (toString.call(x) === id))); };