sparse-intern-71089
03/24/2021, 4:15 PMwitty-candle-66007
03/24/2021, 4:29 PMconst thing = usernames.apply(names => {
return names.filter(filterFunction)
}
witty-candle-66007
03/24/2021, 4:32 PMstring[]
- it’s an Output<string[]>
so string methods are not available to it. Therefore, you need to work within the .apply()
block to strip that Output
aspect and get the value as a string[]
and then you can mess with it.
In the above, thing
will be an Output<string[]>
again but it will contain what you want for later use.salmon-ghost-86211
03/24/2021, 4:56 PM.apply()
but sometimes it just doesn't seem to work the way I hope it will. I appreciate your explanation. It is helpful indeed. I will work with the suggestion you provided and see where I can take it.