Boolean traps can cause readability and maintainability issues in your code. Learn what they are, how to spot and fix them in this article.
Performs a deep comparison between two values to determine if they are equivalent.
instanceof operator can't be used with primitive values, but there are a couple of simple tricks that you can leverage to your advantage.
Have you ever tried to convert the string representation of a boolean to an actual boolean value? Here's a simple way to do it.
Checks if the a value is an empty object/collection, has no enumerable properties or is any type that is not considered a collection.
Checks if the given argument is a duplex (readable and writable) stream.
Checks if the given argument is a writable stream.
Checks if an object looks like a