forked from orbit-oss/is
Update is.boolean() method (#15)
This commit is contained in:
parent
24c964a7c7
commit
ee8f5d16f8
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -61,7 +61,7 @@ is.undefined = isOfType('undefined');
|
||||||
is.null = x => x === null;
|
is.null = x => x === null;
|
||||||
is.string = isOfType('string');
|
is.string = isOfType('string');
|
||||||
is.number = isOfType('number');
|
is.number = isOfType('number');
|
||||||
is.boolean = isOfType('boolean');
|
is.boolean = x => x === true || x === false;
|
||||||
is.symbol = isOfType('symbol');
|
is.symbol = isOfType('symbol');
|
||||||
|
|
||||||
is.array = Array.isArray;
|
is.array = Array.isArray;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue