Search results
299 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
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
Validation utilities
Typed Option/Optional/Maybe for TypeScript and JavaScript, created to simplify code involving optional values (null, undefined, NaN).
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
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
Prebuilt null Provider for Terraform CDK (cdktf)
Coalesce for JavaScript. Returns the first value that is not undefined or null.
Test if a value is null.
JSON.parse(JSON.stringify(myObject)) and remove all nulls, undefined and empty strings
A utility to determine if a value is null
Checks if the given value is a window object.
Option<T>, Some<T>, None types and runtime functions to safely write JS/TS code without using null and undefined
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
A collection of monads (Result, Option) for TypeScript, inspired by [the Rust programming language](https://doc.rust-lang.org/std/result/).
Convert any value into a boolean value.
Optional value handling library.