It takes an array of objects, sorts them, and returns the sorted array.
But now, it complains that this code does not return a Room[] or otherwise array of objects. Rather, it returns a single Room. Using values returns a _._Chain<any, any> which is also not what I need.
How can I get around this issue? I just need a standard array returned.
This snippet worked for me until I added Typescript and updated the package
Code here
It takes an array of objects, sorts them, and returns the sorted array.
But now, it complains that this code does not return a
Room[]
or otherwise array of objects. Rather, it returns a singleRoom
. Usingvalues
returns a_._Chain<any, any>
which is also not what I need.How can I get around this issue? I just need a standard array returned.