84
rated 0 times
[
88]
[
4]
/ answers: 1 / hits: 13360
/ 10 Years ago, sat, october 11, 2014, 12:00:00
I'm trying to merge all objects together using lodash and I tried _.assign and _.merge still it shows the objects separately.
var arr = [
{asf : 33, ff1 : 12},{xx : 90, ff2 : 13},{xw : 66, ff3 : 176}
]
console.log( _.assign({}, arr)); //should show {asf : 33, ff1 : 12,xx : 90, ff2 : 13, xw : 66, ff3 : 176}
More From » lodash