You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find I sometimes have to wrap single values from a data source as an IterableWithOperators for consumption later, and it would be nice if I could pass one into iterate as-is, like this:
constthing=single ? "Hi, I'm single!" : ["Hi, I'm with ->","Hi, I'm with <-"]// this throws an errorreturniterate(thing)// my workaroundif(Array.isArray(thing){returniterate(thing)}returniterate([thing])
I do this test in multiple places, and often I don't know if it is an array or not because the value comes from outside data. I would like to not have to test for this and just wrap it automatically in an iterable.
The text was updated successfully, but these errors were encountered:
I find I sometimes have to wrap single values from a data source as an IterableWithOperators for consumption later, and it would be nice if I could pass one into
iterate
as-is, like this:I do this test in multiple places, and often I don't know if it is an array or not because the value comes from outside data. I would like to not have to test for this and just wrap it automatically in an iterable.
The text was updated successfully, but these errors were encountered: