Skip to content

Instantly share code, notes, and snippets.

@nikhilknoldus
Created May 1, 2020 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikhilknoldus/0df4a216a2d78e02ec2692c58bccf0a0 to your computer and use it in GitHub Desktop.
Save nikhilknoldus/0df4a216a2d78e02ec2692c58bccf0a0 to your computer and use it in GitHub Desktop.
let obj = {secType1 : undefined,secType2 : true,secType3 : undefined,secType4 : undefined}
obj[this.currentSleected] = true;
for(let [key,value] of Object.entries(obj)){
if(obj[key] == undefined && key === 'secType1'){
secType1.filter((value) => (value[this.currentSleectedropdownValue] == HUNT)}
}
if(obj[key] == undefined && key === 'secType2'){
secType2.filter((value) => (value[this.currentSleectedropdownValue] == HUNT)}
}
if(obj[key] == undefined && key === 'secType3'){
secType3.filter((value) => (value[this.currentSleectedropdownValue] == HUNT)}
}
if(obj[key] == undefined && key === 'secType4'){
secType3.filter((value) => (value[this.currentSleectedropdownValue] == HUNT)}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment