Last active
September 28, 2018 09:22
-
-
Save Anzumana/59231f45f34f929f1f2d62d9c84513ed to your computer and use it in GitHub Desktop.
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 tmp = []; | |
for(var i=0; i< data.length;i++){ | |
if(tmp.indexOf(data[i].category) == -1){ | |
tmp.push(data[i].category); | |
} | |
} | |
console.log('this is my result'); | |
console.log(tmp); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment