48 packages found
Simple utility function for checking isDefined for complex objects with long property paths
ensures all required parameters are not null, or throws a useful error like 'phone is required'
util for validation that object has defined props
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.
Check if a variable in a nested object is defined and optionally also check its type. Useful for verifying API responses.
Finds the absolute filepath to the original sourcecode of any defined value
The type() function types all data types and more.
A utility function for extracting defined values from an object.
A logic Utility. Nil is: null or undefined. Make writing node easier, prettier and less error prone. Writes and reads more like prose
Safe chaining of object properties and functions using ES2015 Proxy.
Returns a new object without undefined object properties
NodeJS bindings for fastcdc-rs
Common types, type guards and type checkers.
utilizes js/ts arrays with onEmpty, defined and flatMap functions
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.
A lightweight stream-like maybe/orElse lib for optional values. `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.