Debian logoDebian Screenshots >

node-defined

return the first argument that is `!== undefined`

Description

Most of the time when you chain together ||s, you actually just want the first item that is not undefined, not the first non-falsy item.

This module is like the defined-or (//) operator in perl 5.10+.

Node.js is an event-based server-side JavaScript engine.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.


Homepage

https://github.com/substack/defined


Statistics

178 other people were interested in this package here. The newest known version of this software is 1.0.0-1 (Information last updated about 5 hours ago.)