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

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

On Fri, 23 Oct 2015, Steve McIntyre wrote:

> separate library for a single function as trivial as:
>     for (var i = 0; i < arguments.length; i++) {
>         if (arguments[i] !== undefined) return arguments[i];
>     }

> Yes, by all means if you're using it a lot. But a separate library
> with its own docs and test suite and everything? No, that's a joke.

Look at it like this: the language is so hard to get things
right in that libraries like this are necessary…

tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

Reply to: