46 packages found
ensures all required parameters are not null, or throws a useful error like 'phone is required'
The type() function types all data types and more.
A lightweight stream-like maybe/or else monad for typescript. `maybe(val).valueOr(other)` grant you no unexpected undefined and hence allows you to write you TS-code in a more fluid way, skipping some of those if-else nestings.
deep copy anything including programmer defined classes.
NodeJS bindings for fastcdc-rs
Simple utility function for checking isDefined for complex objects with long property paths
A logic Utility. Nil is: null or undefined. Make writing node easier, prettier and less error prone. Writes and reads more like prose
util for validation that object has defined props
Check if a variable in a nested object is defined and optionally also check its type. Useful for verifying API responses.
A robust micro library for type checking. Defers to constructs' internal `[[Class]]` property rather than duck typing for excellent type detection and to avoid triggering false positives.
checks if foo is not defined, i.e. undefined, null, an empty string, array, object or NaN
Finds the absolute filepath to the original sourcecode of any defined value
Return the first defined item in an array
A utility function for extracting defined values from an object.
Common types, type guards and type checkers.
checks if your properties or values are defined
Returns a new object without undefined object properties
Safe chaining of object properties and functions using ES2015 Proxy.