Search results
275 packages found
ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.
- primitive
- abstract
- ecmascript
- es5
- es6
- es2015
- toPrimitive
- coerce
- type
- object
- string
- number
- boolean
- symbol
- View more
return the first argument that is `!== undefined`
Typed Option/Optional/Maybe for TypeScript and JavaScript, created to simplify code involving optional values (null, undefined, NaN).
A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.
- TypeScript
- isNullOrUndefined
- isEmpty
- isEqual
- isNumber
- randomNumberBetweenRange
- random number between range
- asyncForEach
- async for each
- delay
- convertTimeUnits
- convert time units
- getToday
- setEndOfDay
- View more
Ignore keys which have undefined values to compare from a deep equal operation with chai expect
Coalesce for JavaScript. Returns the first value that is not undefined or null.
Ignore keys which have undefined values to compare from a deep equal operation with chai expect
Transform an Object that was transformed to return only the original properties recursively picked if they are not undefined.
Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)
- array
- assert
- assertion
- async
- async function
- async-function
- asyncFunction
- bool
- boolean
- browser
- check
- check-type
- checking
- class
- View more
Next JavaScript Object Notation
A utility to determine if a value is undefined
Test if a value is undefined.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- undefined
- void
- is
- isundefined
- isvoid
- type
- View more
For projects that may or may not run on a browser, like websites with SSR, sets all browser global variables like `window` or `document` as eventually undefined for better type-proofing
Safe Window Getters
Test if a value is a JavaScript primitive.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- valid
- primitive
- string
- number
- null
- undefined
- View more
Test if a value is undefined or null.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- undefined
- void
- null
- is
- isundefined
- isnull
- View more
Convert any value into a boolean value.
Easily remove null, undefined, or any specified values from JSON objects and arrays.
A simple package to check if input is null, undefined, or an empty string