This commit is contained in:
Khaled Al-Ansari 2017-10-04 17:41:23 +00:00 committed by GitHub
commit dd9539f160

View file

@ -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';