Class: MultiLens

MultiLens

new MultiLens(lenses, flags) → {MultiLens}

A MultiLens is a Lens that can view on multiple things at once. It takes an array of Lenses or an object with Lenses as values; get, set and map run corresponding functions over the input object for each internal lens.

Parameters:
Name Type Description
lenses object | Array

Lenses used to view on input objects.

flags object

Additional flags to add to the Lens instance

Returns:
Type
MultiLens