Skip to content
Litichevskiy Dmitriy edited this page Jan 27, 2019 · 1 revision

manipula.single([predicate])

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

Kind: instance method of Manipula

Param Type Description
[predicate] logicalPredicate A function to test an element for a condition.
Clone this wiki locally