@unction/fresh
A => A
Takes a value and returns an empty fresh version of that value.
fresh({aaa: "aaa"}) // {}
fresh(["aaa"]) // []
fresh({}) // {}
fresh([]) // []
Takes a iterable and returns an empty fresh version of that iterable
Homepage Repository npm JavaScript Download
npm install @unction/fresh@8.13.0