5d1a802e11211cb0fcd2505257cd5924e09532c6
[platform/framework/web/crosswalk-tizen.git] /
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 };