javascript - oneArray's objects + twoAarray's objects to and of oneArray -
i have 2 arrays're contained objects , need put elements(objects) first array how ? mybe underscore?
plain js:
arr = [1,2,3,4] arr1 = [6,7] arr = arr.concat(arr1)
using underscore
arr = [1,2,3,4] arr1 = [6,7] arr.push(arr1) arr = _.flatten(arr)
Comments
Post a Comment