[**@twipped/hooks**](../../README.md) • **Docs**

***

# Function: useMemoMapped()

> **useMemoMapped**(`collection`, `predicate`): `any`

Memoizes the results of mapping a collection (array, object, map, set) per value,
thus if the collection is changed, only the values that change will be recomputed.

## Parameters

• **collection**: `any`

• **predicate**: `any`

A function or iteratee identity (key name, or truthy evaluating pairing)

## Returns

`any`

## Function

useMemoMapped

## Source

[hooks/useMemoMapped.js:15](https://github.com/Twipped/hooks/blob/main/hooks/useMemoMapped.js#L15)
