Create check_for_boolean

This commit is contained in:
Meet Zaveri
2017-12-13 21:52:51 +05:30
committed by GitHub
parent 42237471ab
commit 8f839542b6

View File

@ -0,0 +1,10 @@
### Check for Boolean Primitive Values
Check if a value is classified as a boolean primitive. Return true or false.
function booWho(bool) {
return typeof bool === 'boolean';
}
// test here
booWho(null);