DEV Community

Cover image for Javascript Underrated Method "endsWith()"

Javascript Underrated Method "endsWith()"

Mahfuzur Rahman on November 06, 2023

The endsWith function is a method available in JavaScript for strings. It is used to check if a string ends with a specified substring, and it retu...
Collapse
 
wolframkriesing profile image
Home Officer

Totally agree, it feels like endsWith() is "not seen" enough.
I also wrote a kata to learn (all details) about it jskatas.org/katas/es6/language/str...