Search results
295 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
A simple package to check if input is null, undefined, or an empty string
To check if the input is null, undefined, empty string, empty array, or an empty object
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.
Typed Option/Optional/Maybe for TypeScript and JavaScript, created to simplify code involving optional values (null, undefined, NaN).
Simple function that return the first non null or undefined argument
Politely tells stdout and stderr to shut the heck up for a moment.
Common error classes and utility functions
- error
- errors
- common errors
- exception
- exceptions
- validation
- standard
- argument
- null
- database
- data
- mysql
- sql
- db
- View more
Java 8 Optionals for JS
Recursively remove deeply nested properties and/or falsey values (excluding 0), empty objects, and empty arrays.
Check if something exists (e.g. not null || undefined)
returns a copy of an array or object with null/undefined members removed
Validation utilities
Minimal object-to-json formatting and chopping tool.
This little utility helps in finding null, undefined etc values from objects and arrays.
A library to prune a JS object from nulls, recursively.
Check if a given value is empty in JS extending his "truthy" and "falsy" nature
Try to parse a string as JSON and return undefined on failure
- invalid
- circular
- json
- parse
- stringify
- serialize
- parsing
- serialization
- stringification
- try
- catch
- try/catch
- exception
- exceptions
- View more