ES6 has added 3 new methods to aid the developer when searching for segments of text within a String. startsWith(), endsWith() and includes(). This one I love because something about indexOf() has always struck me as inefficient and error pr…Javascript ES6 — Exploring the New Built-In Methods4.8K19Ben GarrisonAakash MallikFollowAug 23, 2017 · 1 min readThe second parameter being the start of search..