pick

Methods

(inner) deepPick(nodePath, childPathopt) → {InputFunction}

Source:

Once fully applied, this returns a new tree containing only nodes lying on the supplied nodePath, with all nodes and children outside of the nodePath removed.

Parameters:
Name Type Attributes Default Description
nodePath NodePath

A NodePath whose nodes will be filtered and returned.

childPath ChildPath <optional>
null

An Array or List of keys indicating where to find each node's children from within each node.

Returns:

A partially applied function which accepts a single tree Iterable, and returns the modified tree Iterable.

Type
InputFunction