DEV Community

Discussion on: 10 JavaScript string methods you should know

Collapse
 
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.

Collapse
 
waldbach profile image
Janne Wolterbeek

Thanks, was wondering about that!