Cover image credits: tutsmake.com
Those sort of functions/methods you usually copy-paste from a project to another in a utils.js
file π
i.e. we have toLowerCase, toUpperCase but not capitalize or toCamelCase or toPascalCase
Share your string utils!
Top comments (1)
I usually have str_pad from locutus lib (previously phpjs) that I use to log things in nodejs console without other lib requirements : locutus.io/php/strings/str_pad/ind...