mergeBy
Available since v1.4.0
description
mergeBy
works like merge
, but uses an additional parameter (getter
) to retrieve the value used for comparison. This additional parameter can be provided as a Function
, or a String
in which case mergeBy will retrieve the value associated to the provided key.
examples
providing a key name as a string
providing a function
Last updated