diff --git a/index.js b/index.js index 045577f..1b4ead8 100644 --- a/index.js +++ b/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 (value === 'boolean') { + return 'boolean'; + } if (type === 'string') { return 'string';