Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #27125
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Remove leading zeros in index of array |
| Date | Tue, 24 Mar 2015 20:21:28 +0100 |
| Organization | PointedEars Software (PES) |
| Lines | 22 |
| Message-ID | <1518239.EFQcgAjVos@PointedEars.de> (permalink) |
| References | <2c9d128f-2237-4484-bbbe-2020864ec72a@googlegroups.com> <a2adb$55117781$6def49d7$1008@nntpswitch.blueworldhosting.com> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Trace | solani.org 1427224990 21143 eJwFwQkBACAIA8BKCuNZHFToH8E7U99+A24OG5s9CdbDYt3RUC4KUyfyKIIm2dPSL+rp6cYHEK0RIw== (24 Mar 2015 19:23:10 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Tue, 24 Mar 2015 19:23:10 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwNyscBwDAIBLCVTDvwOJiy/wiJ3jIBoVxhUFvbeVUPQLMfaVTqtbSKkZPgkLjpwTw0+q+dPjrUTMy2Qj0fWwcVXw== |
| Cancel-Lock | sha1:TD+V8kjBvsAxK1YwaRO9VydyR34= |
| X-NNTP-Posting-Host | eJwNwoERACEIA7CVpKXwjMPps/8IeokYFjs9FK55VplDmJ/J7h4gP7FXwAYnqQHLHm0/xQv+Ww/g |
| Xref | csiph.com comp.lang.javascript:27125 |
Show key headers only | View raw
Cezary Tomczyk wrote:
> bin = bin.filter(function(element){
> if (element) {
> return element;
> }
> return false;
> });
bin = bin.filter(function (e) { return e; });
<http://ecma-international.org/ecma-262/5.1/#sec-15.4.4.20>,
step 9.c.iii.
<http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.filter>,
step 11.d.iii.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Remove leading zeros in index of array jonas.thornvall@gmail.com - 2015-03-23 04:57 -0700
Re: Remove leading zeros in index of array jonas.thornvall@gmail.com - 2015-03-23 10:03 -0700
Re: Remove leading zeros in index of array Scott Sauyet <scott.sauyet@gmail.com> - 2015-03-23 10:32 -0700
Re: Remove leading zeros in index of array Tim Streater <timstreater@greenbee.net> - 2015-03-23 18:36 +0000
Re: Remove leading zeros in index of array "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-03-23 20:42 +0100
Re: Remove leading zeros in index of array jonas.thornvall@gmail.com - 2015-03-23 12:58 -0700
Re: Remove leading zeros in index of array "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-03-23 21:12 +0100
Re: Remove leading zeros in index of array jonas.thornvall@gmail.com - 2015-03-23 13:16 -0700
Re: Remove leading zeros in index of array "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-03-23 21:36 +0100
Re: Remove leading zeros in index of array "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-03-23 21:49 +0100
Re: Remove leading zeros in index of array "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-03-23 21:58 +0100
Re: Remove leading zeros in index of array Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2015-03-24 15:41 +0100
Re: Remove leading zeros in index of array Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-03-24 20:21 +0100
Re: Remove leading zeros in index of array Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2015-03-24 20:45 +0100
Re: Remove leading zeros in index of array Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-03-24 20:47 +0100
Re: Remove leading zeros in index of array Scott Sauyet <scott.sauyet@gmail.com> - 2015-03-24 13:37 -0700
Re: Remove leading zeros in index of array Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2015-03-25 00:01 +0100
csiph-web