Search Posts

Category: underscore.js

Merge two Arrays using underscore.js in AngularJS

I have two api requests and both gets a result of JSON. The first request is “account” request and second is “Container” request. Now: Request for all Accounts (accountid: 1, name: account1, blabla) Request for all Containers (accountid: 1, name: Container1, blabla) This is the result JSON of Accounts: account: [ { accountId: “123456789”, fingerprint: null, name: “Account2”, path: “accounts/123456789”, }, This is the result JSON of Containers: { accountId: “123456789”, containerId: “123****”, domainName: null, […]