Avatar of Charles Baldo
Charles Baldo
Flag for United States of America asked on

Need to join two Angular Array Objects

I need to join two javascript json arrays and push the concat into one

                for (var z = 0; i < data.length; z++) {
                    var dlist = data[z];
                              
                    for (var j = 0; j < verifyWMRList.length; j++) {

                        var vlist = verifyWMRList[j];

                        if (dlist.Email == vlist.CRMMemberEmail) {                            

Right here I need dlist and vlist to be 1 array row and push it onto my $scope.items

                            $scope.items.push(   Joined Array );
                           
                        }

                    }
                }

Open in new window


Thank  You
JavaScriptScripting Languages

Avatar of undefined
Last Comment
Charles Baldo

8/22/2022 - Mon
leakim971

what about :

$scope.items.push(   dlist.concat( vlist )   );
Charles Baldo

ASKER
clever but I get an error

Error: dlist.concat is not a function
ASKER CERTIFIED SOLUTION
leakim971

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Charles Baldo

ASKER
Thnaks Again your help made the diff
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23