#methods
Read more stories on Hashnode
Articles with this tag
They are sworn rivals of the trim() family · In case you're interested in a little bit of back-history, there's always the (old) news related to the npm...
...and side-eyeing the pad*() family! · trim trim() is very straightforward: it will remove whitespace from the beginning and end of a string, leaving...
The Return of the RegExp · replace replace() is super versatile. It takes two parameters: the pattern you're looking for and the replacement for it....
A RegExp lover's dream (and also a cool playground) · match match() returns the result, in Array form, of matching a string against the regular...
Strings only, sorry not sorry RegEx. · endsWith endsWith() will check if a string ends with the characters of the string you feed it, returning true or...
Add includes() to the mix and we can try to skirt RegExp, yay! · indexOf Very similarly to search(), indexOf() will return a string's first appearance...