elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/next-env / envToArray
envToArray(
envVal
):string
[]
This method takes an environment variable value (string), removes illegal characters, and then splits the string by its commas, returning the resulting array with all nullish members filtered out.
• envVal: string
string
[]