Similar to groupArrayBy but maps array entries to a single key and requires key
and
value
outputs from the callback. The resulting object does not have an array of elements
(unless the original array itself contains arrays). Automatically handles the case where the
callback returns a promise.
Optional
options: Partial<{ useRequired: UseRequired }>Optional.
Similar to groupArrayBy but maps array entries to a single key and requires key
and
value
outputs from the callback. The resulting object does not have an array of elements
(unless the original array itself contains arrays). Automatically handles the case where the
callback returns a promise.
Optional
options: Partial<{ useRequired: UseRequired }>Optional.
Similar to groupArrayBy but maps array entries to a single key and requires key
and
value
outputs from the callback. The resulting object does not have an array of elements
(unless the original array itself contains arrays). Automatically handles the case where the
callback returns a promise.
Optional
options: Partial<{ useRequired: UseRequired }>Optional.
Similar to groupArrayBy but maps array entries to a single key and requires
key
andvalue
outputs from the callback. The resulting object does not have an array of elements (unless the original array itself contains arrays). Automatically handles the case where the callback returns a promise.Example
Package
@augment-vir/common