@unction/fresh

Takes a iterable and returns an empty fresh version of that iterable


Keywords
unction, functional
License
ICU
Install
npm install @unction/fresh@8.13.0

Documentation

@unction/fresh

Tests Stability Dependencies

A => A

Takes a value and returns an empty fresh version of that value.

fresh({aaa: "aaa"}) // {}
fresh(["aaa"]) // []
fresh({}) // {}
fresh([]) // []