Link Search Menu Expand Document

Object Take (Extracts key-value pair into a new object)

Returns a new map with all the key-value pairs in map where the key is in keys.


Object: Location of the object to take the value from
Keys: Key of the value to extract


Output-location: Location to store the output data


From the object

{a: 1, b: 2, c: 3}

extract values matching the keys

[a, c, e]

This will return

{a: 1, c: 3}