There a lot of ways to remove duplicates from javascript array.
http://stackoverflow.com/questions/9229645/remove-duplicates-from-javascript-array
Regardless performance, this method is neat and easy to understand.
Note: For IE, the arr.filter is supported after IE9.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
No comments:
Post a Comment