DEV Community

Discussion on: 10 JavaScript string methods you should know

patrickcole profile image
Patrick Cole

Great list of methods for Strings. I would just like to highlight that String.startsWith() and String.repeat() are ES2015+ String.endsWith() is ES6+, so polyfill accordingly to support edge cases.

waldbach profile image
Janne Wolterbeek

Thanks, was wondering about that!