Create simple typed and recursive schemas by sampling an object that represents the data structure in question.
Fast array search algorithm that requires that the searched array is sorted.
testpublished 2.0.0 4 years ago
Repeat a given function for ever given number of milliseconds. There can be set a max number of repeats, a max datetime in unix epoch format, and an array of arguments can be passed to the function as context. The count number index is passed to the functpublished 0.0.1 4 years ago
Html parser that returns a data tree object.
A key-value cache where data is automatically deleted after a set ammount of seconds.published 1.0.0 3 years ago
Check whether the provided value is undefined.published 3.0.4 3 years ago
A class with min and max properties and exposes methods for determining if a value is inside or outside the range between the min and max values.published 1.1.1 3 years ago
Returns whether or not the passed arguments are defined - ie. not undefined
Assert that the passed arguments are defined.published 1.0.2 3 years ago
Node library template package with full ESM support. All features available as npm scripts: Jest testing. Rollup build. Rename package - affecting all relevant files. Readme generator. Markdown and HTML API-documentation. Npm publish and version bumping.
Returns a string representing a value's constructor's name property, except for 'NaN', infinite values, 'Infinity', 'Null' and 'Undefined'.published 1.0.4 3 years ago
Check if a value is of the given type.published 1.0.2 3 years ago
Returns whether 'value' is an Array.
Returns true of value 'v' is null.
Creates an error-message string with ANSI-colors to make it easy to spot in the console.
Throws a TypeError with a generated error message with ANSI-colors for easier console output readability.
Browser-safely returns whether the current process is a node-js process.
Perform easy type-checks with a simple type assertion.
Returns true if 'value' is a constructorpublished 1.1.1 3 years ago
Throws TypeError if 'value' is not a constructor.
Returns whether the passed value is an arguments-object
Takes an arguments-object and returns its values in an array.
Flattens the passed array recursively.published 3.0.0 3 years ago