This method was introduced in ES2015. It aims to help comparing values.
The result is always
bare the same exact object
bare equal strings (strings are equal when composed by the same characters, in the same order)
bare equal numbers (numbers are equal when their value is equal)
+0 using the
+ unary operator before comparing, for example).
More js tutorials:
- How to use Async and Await with Array.prototype.map()
- The ES6 Guide
- How to send the authorization header using Axios
- A Moment.js tutorial
- The Object defineProperty() method
- How to force credentials to every Axios request