Returns a copy of an object with its keys sorted
created at Feb. 17, 2014, 8:10 p.m.
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
created at March 20, 2014, 2:36 p.m.
Normalize values in package.json to improve compatibility, programmatic readability and usefulness with third party libs.
created at March 25, 2014, 6:08 a.m.
Return true if a value exists in an array. Faster than using indexOf and won't blow up on null values.
created at June 26, 2014, 10:48 a.m.
An implementation of PHP's strip_tags in Typescript.
created at June 28, 2014, 1:36 a.m.
Return the last element in an array. Faster than `.slice`
created at June 28, 2014, 11:50 a.m.
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
created at Sept. 22, 2014, 1:48 a.m.
JavaScript/Node.js utility. Returns `true` if the value is a number or string number. Useful for checking regex match results, user input, parsed strings, etc.
created at Sept. 22, 2014, 3:40 a.m.
Recursively flatten an array or arrays. This is the fastest implementation of array flatten.
created at Sept. 26, 2014, 1:59 a.m.
Returns an array with only the unique values from all given arrays using strict equality for comparisons.
created at Sept. 26, 2014, 6:39 a.m.
Use property paths (`a.b.c`) get a nested value from an object.
created at Oct. 7, 2014, 8:51 p.m.
Map object keys and values into a new object
created at Oct. 12, 2014, 11:42 a.m.
some best practices for JS modules
created at Oct. 15, 2014, 1:25 p.m.
Left pad a string with zeros or a specified string. Fastest implementation.
created at Nov. 30, 2014, 7:21 p.m.
Get the first element or first n elements of an array.
created at Dec. 12, 2014, 11:06 a.m.
Object -> [[key0, value0], [key1, value1]...]
created at Dec. 12, 2014, 11:37 p.m.