Minify HTML
created at Dec. 20, 2013, 4:55 p.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.
Set nested properties on an object using dot-notation.
created at March 25, 2015, 1:40 a.m.
Use property paths (`a.b.c`) get a nested value from an object.
created at Oct. 7, 2014, 8:51 p.m.
Get a formatted timestamp. Used in gulp, assemble, generate, and many others.
created at May 1, 2015, 9:01 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 true if the platform is Windows (and Cygwin or MSYS/MinGW for unit tests)
created at July 11, 2015, 7:16 p.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.
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.
Return the last element in an array. Faster than `.slice`
created at June 28, 2014, 11:50 a.m.
Get the first element or first n elements of an array.
created at Dec. 12, 2014, 11:06 a.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.
Bind a context to all functions in an object, including deeply nested functions.
created at Jan. 21, 2016, 8:23 a.m.
Left pad a string with zeros or a specified string. Fastest implementation.
created at Nov. 30, 2014, 7:21 p.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.