Skip to content

Proposal: Add an array function $single()  #348

@jhorbulyk

Description

@jhorbulyk

.NET's LINQ contains an operator .Single() which

Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.

It would be convenient if JSONata had a similar function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions