Skip to content

Instantly share code, notes, and snippets.

@ravionrails
Created May 17, 2020 15:25
Show Gist options
  • Save ravionrails/34269928ec4fc6f644a98b80f9c6b68b to your computer and use it in GitHub Desktop.
Save ravionrails/34269928ec4fc6f644a98b80f9c6b68b to your computer and use it in GitHub Desktop.
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