Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Group by and filter in jquery
Akhilesh Pandit
Nov 24 2016 9:53 AM
398
Reply
Hi All
I have json like
abcArr = [[FirstName:"A",LastName:"B",FullName:"AB",Email:"
[email protected]
"],
[FirstName:"A",LastName:"B",FullName:"AB",Email:"
[email protected]
"],
[FirstName:"C",LastName:"D",FullName:"CD",Email:"
[email protected]
"]]
and i want out put like this
OUTPUT [[[FirstName:"A",LastName:"B",FullName:"
[email protected]
",Email:"
[email protected]
"],
[FirstName:"A",LastName:"B",FullName:"
[email protected]
",Email:"
[email protected]
"],
[FirstName:"C",LastName:"D",FullName:"CD",Email:"
[email protected]
"]]
in this array if group by on firstname and lastname and there count greater than 0 then email id added with firtname and last name and make full name and if count equal to 0 then emailid not aaded to fullname
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
I want to learn Jquery. simple to advanced
onserverclient doesn't work