Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to delete dublicate value from arraylist in knockout js

give me reply ad soon as possible.
Posted
Updated 13-Oct-14 6:41am
v2
Comments
Sergey Alexandrovich Kryukov 13-Oct-14 13:11pm    
I would rather question how to avoid those duplicates in first place.
It's not clear what kind of help would you need. Just one point: read the documentation.
—SA

1 solution

Prob best to clear the duplicates before putting them in.
But if you need to take them out look at underscore.js it has a distinct function.
Run this on the observable array and then repopulated it with te result.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900