@@isConcatSpreadable

Brendan Eich brendan at mozilla.org
Mon Jun 15 22:41:04 UTC 2015


Herby Vojčík wrote:
> So when one actually _wants_ to concat (as, add elements of the 
> iterable), it should stop using concat for that and must do something 
> like
>
>  var concatenated = first.slice();
>  concatenated.push(...second, ...third, ...fourth);

Or use concat but wrap the parameter with [].

/be


More information about the es-discuss mailing list