Created
May 1, 2020 08:36
-
-
Save nikhilknoldus/0df4a216a2d78e02ec2692c58bccf0a0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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