pluck

String / Misc

Extracts a single field from every object in an array, returning an array of those values. Supports dot-notation for nested fields. The array equivalent of get.

Syntaxpluck:field
fieldField name to extract from each object (supports dot-notation)

Use cases

All commands