Created
May 17, 2020 15:25
-
-
Save ravionrails/34269928ec4fc6f644a98b80f9c6b68b 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
getFilteredStates(country_code){ | |
let _countryIndex = this.states_list.controllerValues[country_code]; | |
let filterStates = this.states_list.values.filter( val => { | |
return val.validFor.includes(_countryIndex); | |
}); | |
return filterStates | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment