Last active
July 26, 2017 09:38
-
-
Save tshabatyn/8f3a166a6d2a6efad42e835d802162f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(Object.prototype.toString.call(undefined)) // [object Undefined] | |
console.log(Object.prototype.toString.call('undefined')) // [object String] | |
console.log(Object.prototype.toString.call('')) // [object String] | |
console.log(Object.prototype.toString.call(4)) // [object Number] | |
console.log(Object.prototype.toString.call(NaN)) // [object Number] | |
console.log(Object.prototype.toString.call(true)) // [object Boolean] | |
console.log(Object.prototype.toString.call({})) // [object Object] | |
console.log(Object.prototype.toString.call([])) // [object Array] | |
console.log(Object.prototype.toString.call(function() {})) // [object Function] | |
console.log(Object.prototype.toString.call(/^[0-9]*$/)) // [object RegExp] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment