Created
December 13, 2013 09:13
-
-
Save cyjake/7941752 to your computer and use it in GitHub Desktop.
Array.unique?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = [{ | |
sizes: [1, 0] | |
},{ | |
sizes: [2, 3] | |
},{ | |
sizes: [2, 2] | |
},{ | |
sizes: [3, 5] | |
},{ | |
sizes: [1, 0] | |
},{ | |
sizes: [2, 2] | |
},{ | |
sizes: [2, 3] | |
},{ | |
sizes: [2.3, -2] | |
}] | |
// should output | |
// [ { sizes: [ 3, 5 ] }, | |
// { sizes: [ 1, 0 ] }, | |
// { sizes: [ 2, 2 ] }, | |
// { sizes: [ 2, 3 ] }, | |
// { sizes: [ 2.3, -2 ] } ] |
Author
cyjake
commented
Dec 16, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment