This means, you must have a fallback mechanism in your code to handle these environments. Older browsers, and especially Internet Explorer does not support. Includes does a case-sensitive search on the string.Īs developers, you need to be watchful off when the includes is being used. If you are using the most recent version of JavaScript, for development, you have the liberty of using the includes function in the String Prototype.ĮCMAScript 6 introduced const string = "foo" const substring = "oo" console.log(string.includes(substring)) // true
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |