Beta 7 with some repo names changed.
This commit is contained in:
1 parent
0f7b40cca7
commit
963c19493a
3408 files changed
+462217
-15516
No files matched your search
+3
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = { isBoolean: require("./is-boolean") };
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
var objToString = Object.prototype.toString, id = objToString.call(true);
|
||||
|
||||
module.exports = function (value) {
|
||||
return (
|
||||
typeof value === "boolean" ||
|
||||
(typeof value === "object" && (value instanceof Boolean || objToString.call(value) === id))
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user