npm package
Homedefined
The 'defined' package returns the first argument that is not `undefined`, making it useful for scenarios where you want to avoid falsy values like `null` or `false`. It is particularly handy when chaining multiple values to find the first defined one. This utility can simplify code that relies on default values.
- lurq health score
- 37/100
- Confidence
- unproven
- Weekly downloads
- 5,037,332
- Latest version
- 1.0.1
- Last release
- Oct 12, 2022
- License
- MIT
Should you depend on defined?
lurq's verdict: low
- No known advisories
Check this from your coding agent
This page is a daily snapshot. lurq's verify tool checks defined at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:
npx lurqrun
Free to start. Quickstart
Other date-time packages lurq scores
- @mui/icons-material94/100 · proven
- @internationalized/date91/100 · proven
- teeny-request90/100 · proven
- @mui/x-date-pickers90/100 · proven
- @google-cloud/precise-date89/100 · proven
Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 5, 2026; this page refreshes every 24 hours. Source repository.