Forum Discussion
There are a couple of options, maybe more.
I use sl.ensureArray quite frequently. It converts the object to an array, if it is not already an array. sl.ensureArray($myObjectOrArray)
Also available is typeof, which comes in handy in other cases. typeof $myObjectOrArray == "array"
- cjhoward185 years agoEmployee
Thanks for the same answer only better with Documentation links 🙂
Related Content
- 11 months ago