Merge 61dc2db6cb into 27d15f40bd
This commit is contained in:
commit
dd9539f160
1 changed files with 4 additions and 4 deletions
8
index.js
8
index.js
|
|
@ -11,15 +11,15 @@ const is = value => {
|
|||
return 'null';
|
||||
}
|
||||
|
||||
if (value === true || value === false) {
|
||||
return 'boolean';
|
||||
}
|
||||
|
||||
const type = typeof value;
|
||||
|
||||
if (type === 'undefined') {
|
||||
return 'undefined';
|
||||
}
|
||||
|
||||
if (type === 'boolean') {
|
||||
return 'boolean';
|
||||
}
|
||||
|
||||
if (type === 'string') {
|
||||
return 'string';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue