extant

JSON →
library 1.0.21 ·javascript
verified Jun 5, 2026

A JavaScript utility that returns the first argument that is not null, functioning similarly to SQL's COALESCE. It works for strings, numbers, booleans, and objects, but treats undefined as null by default. The current stable version is 1.0.21, and the package is in maintenance mode with no active development. It is lightweight and has no dependencies, but lacks TypeScript definitions and does not handle nested null values or functions.