Skip to content

#distinct

Returns the items with distinct values of a specified property, or distinct scalar values.

#distinct(array, @x: key?)
Category Arrays and sequencesValid in Property value
Name Type Description
array path | array The source array.
key (optional) lambda Selects the value that determines uniqueness.

array

#distinct($.some.path, @x: @x.propertyName)

#groupBy