These are chat archives for airbnb/javascript

26th
Nov 2016
Anton
@z-vr
Nov 26 2016 22:03
const a = []
['abc', 'def'].forEach(a.push)
how to make it work
Steven Bigham
@volv
Nov 26 2016 22:04
.forEach( x => a.push(x) )
Steven Bigham
@volv
Nov 26 2016 22:11
const a = []
const b = ['abc', 'def'];

b.forEach( x => a.push(x) )

console.log(b);