Use property paths (`a.b.c`) get a nested value from an object.
updated at May 8, 2024, 8:06 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.
updated at April 27, 2024, 4:35 p.m.
Minify HTML
updated at April 24, 2024, 7:27 a.m.
Returns true if the platform is Windows (and Cygwin or MSYS/MinGW for unit tests)
updated at March 22, 2024, 6:31 a.m.
Set nested properties on an object using dot-notation.
updated at March 8, 2024, 10 a.m.
Return the last element in an array. Faster than `.slice`
updated at Jan. 5, 2024, 2:04 p.m.
Recursively flatten an array or arrays. This is the fastest implementation of array flatten.
updated at Oct. 27, 2023, 8:09 a.m.
Get a formatted timestamp. Used in gulp, assemble, generate, and many others.
updated at Sept. 5, 2023, 9:32 p.m.
Returns an array with only the unique values from all given arrays using strict equality for comparisons.
updated at July 23, 2023, 6:20 p.m.
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
updated at Jan. 2, 2023, 3:58 p.m.
Left pad a string with zeros or a specified string. Fastest implementation.
updated at Dec. 6, 2022, 1:07 a.m.
Get the first element or first n elements of an array.
updated at Dec. 26, 2021, 4:08 a.m.
Normalize values in package.json to improve compatibility, programmatic readability and usefulness with third party libs.
updated at May 15, 2021, 1 p.m.
Return true if a value exists in an array. Faster than using indexOf and won't blow up on null values.
updated at April 12, 2021, 10:36 p.m.
Bind a context to all functions in an object, including deeply nested functions.
updated at April 12, 2021, 10:21 p.m.