Created
October 16, 2018 01:55
-
-
Save fredbegin11/962d53bee0e95cafedf6e7ac562ab48f to your computer and use it in GitHub Desktop.
Inline function comparison
This file contains hidden or 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
| const logFunction = () => console.log("Un exemple"); | |
| (() => console.log("Un exemple")) === (() => console.log("Un exemple")); // faux | |
| logFunction === (() => console.log("Un exemple")); // faux | |
| logFunction === logFunction // vrai |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment