ts-belt
ts-belt copied to clipboard
Feature request: Object Copying
Hi!
Is a D.copy
function planned?
Thanks!
@kee-oth not sure, what's the purpose of D.copy
, since all ts-belt
functions return immutable data
closing due to inactivity, feel free to reopen the issue if you need so :)
What if we wanted to use an immutable input as input into a mutable function in the pipeline and thus needed to deep clone the object/array?
ex.
pipe(
readOnlyArrayofReadOnlyObjects,
D.deepClone,
F.toMutable,
customMutatingFunction
)