Object
Helper functions that have to do with objects.
Functions
objectFilter()
function objectFilter<K, V>(object, predicate): V[]
Helper function to get the values in an object that match an arbitrary condition. Similar to the
Array.map
method, but works for objects.
This is efficient such that it avoids converting the object values into an array.
Type Parameters
Type Parameter |
---|
K extends string | number | symbol |
V |
Parameters
Parameter | Type |
---|---|
object | Readonly <Record <K , V >> |
predicate | (value ) => boolean |
Returns
V
[]