values

Object

Returns 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.

Syntaxvalues

Use cases

Use caseDescriptionURL
Extract object values as arrayPull 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 valuesConvert 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 coordinatesPluck 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

All commands