values
ObjectReturns an array of the values of an object, in insertion order. The counterpart to keys. Useful for converting a lookup object into an array for further processing.
Syntax
valuesUse cases
| Use case | Description | URL | |
|---|---|---|---|
| Extract object values as array | Pull all values out of a single object so you can sort or filter them. | https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/posts/1|values | |
| Sum all numeric values | Convert a stats object to an array then sum every number. | https://httpip.es/api/pipe/echo:{"a":10,"b":20,"c":30}|values|sum | |
| Get all geo coordinates | Pluck a user's geo object and turn it into a [lat, lng] array. | https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/users/1|get:address.geo|values |