Path: csiph.com!2.eu.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Give alert if form checkbox array is empty Date: Sat, 23 Jan 2016 19:41:31 +0100 Organization: PointedEars Software (PES) Lines: 27 Message-ID: <2275462.RoWJF5vleR@PointedEars.de> References: <1851504.v7CTRd67sv@PointedEars.de> <5278c17a-a0e3-4772-9a96-2b20a6479804@googlegroups.com> <1954447.mWofGQDR9d@PointedEars.de> <60f55799-39cf-4e12-9f54-706d61363f3b@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1453574492 27010 eJwFwYEBwDAEBMCVovGPcRD2H6F3uBS2KUHFYremgmw/ZT6bx0KGePcZRHvPlEumRAfex/0BLxYRoA== (23 Jan 2016 18:41:32 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 23 Jan 2016 18:41:32 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwYEBwCAIA7CX7ICi5wDa/09YEkZw0hn0UIh2Kmv3st2Enr8ev8a3RKQQ+gSAqFvjZqPO58f6+K388ANa0BW3 Cancel-Lock: sha1:86QL2HWwKRJKQeuaZvxH6AsORFI= X-NNTP-Posting-Host: eJwFwQERADEIAzBL4wflkAPt41/CkrgwMB0Bj41taU6TP4eT9qX2mGyyylCkQ31JdJgO5Q9KzxJm Xref: csiph.com comp.lang.javascript:29418 Scott Sauyet wrote: > Thomas 'PointedEars' Lahn wrote: >> Scott Sauyet wrote: >>> Thomas 'PointedEars' Lahn wrote: >>>> Keep in mind that the built-in implementation of an algorithm is >>>> naturally always the most efficient one to use as it is, at best, >>>> provided in machine code already. >>> Nonsense. This is a complete non sequitur. >> It is not. Machine code is compiled already; script code is not. So the >> time to interpret script code or to compile script code to machine code >> has to be taken into account. > > So, taking into account the time to compile a script, how much more > efficient is the native `Array.prototype.map` method than the one > supplied by lodash [1]? Apples and oranges. lodash’s _map() can be faster because it is not a conforming implementation of Array.prototype.map(). > [tl;dr] -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.