-
-
Save ilearnjavascript/239b304e1d531c6b2771c96a7a4885ef to your computer and use it in GitHub Desktop.
es6 - new methods - 3.js
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
// ES5 | |
'my string'.indexOf('str') !== -1; | |
// ES6 | |
'my string'.includes('str'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment