equalsBy
Available since v1.4.0
description
Returns true
if the values returned by the getter are equals on both items. The getter
can be provided as a Function
or a String
. If getter
is a Function, then equalsBy
will retrieve the comparison value from both items using the provided function. If it is a String
, then equalsBy
will use it as a key and retrieve the value associated to this key on both items. equalsBy
uses equals
internally to compare the two values returned by getter
.
examples
providing a key name as a string
using a function as getter
Last updated