]> gerrit.simantics Code Review - simantics/district.git/blob - es5-ext/boolean/is-boolean.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / es5-ext / boolean / is-boolean.js
1 'use strict';
2
3 var toString = Object.prototype.toString
4
5   , id = toString.call(true);
6
7 module.exports = function (x) {
8         return (typeof x === 'boolean') || ((typeof x === 'object') &&
9                 ((x instanceof Boolean) || (toString.call(x) === id)));
10 };