UNPKG

underscore-es

Version:

javaScript's functional programming helper library for ES6 and beyond.

9 lines (7 loc) 270 B
// `_isBoolean` : an object's function // ------------------------------------ import {toString} from './_quickaccess'; // Is a given value a boolean? export default function (obj) { return obj === true || obj === false || toString.call(obj) === '[object Boolean]'; }