[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#802595: ITP: node-defined -- return the first argument that is `!== undefined`



Package: wnpp
Severity: wishlist
Owner: Ross Gammon <rossgammon@mail.dk>
X-Debbugs-CC: debian-devel@lists.debian.org

* Package name    : node-defined
  Version         : 1.0.0
Upstream Author : James Halliday <mail@substack.net> (http://substack.net)
* URL             : https://github.com/substack/defined
* License         : Expat
  Programming Lang: JavaScript
  Description     : return the first argument that is `!== undefined`

 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.

This package is required for tape (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798278) and will be maintained within the Debian Javascript Team.


Reply to: