1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 18:52:50 +00:00
Files
mywebsite/node_modules/es5-ext/boolean/is-boolean.js

11 lines
245 B
JavaScript

'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)));
};