Skip to content

Instantly share code, notes, and snippets.

@Anzumana
Last active September 28, 2018 09:22
Show Gist options
  • Save Anzumana/59231f45f34f929f1f2d62d9c84513ed to your computer and use it in GitHub Desktop.
Save Anzumana/59231f45f34f929f1f2d62d9c84513ed to your computer and use it in GitHub Desktop.
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