Round a number to a specific number of decimal places: 1.234 → 1.2
created at Aug. 13, 2015, 6:37 p.m.
Generate random numbers that are consecutively unique
created at Nov. 13, 2013, 8:14 p.m.
Replace all homoglyphs with base characters. Useful to detect similar strings.
created at Dec. 9, 2016, 7:10 a.m.
Strip leading whitespace from each line in a string
created at March 29, 2014, 2:15 p.m.
Remove or replace part of a string like Array#splice
created at Aug. 19, 2015, 6:27 p.m.
Escape RegExp special characters
created at June 24, 2014, 3:04 p.m.
Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar
created at Oct. 12, 2014, 10:58 a.m.
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
created at April 16, 2014, 9:48 p.m.