Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/immutable.d.ts>clone

Faster and smaller alternative to Ramda
Latest
function clone
import { clone } from "https://deno.land/x/rambda@9.4.1/immutable.d.ts";

It creates a deep copy of the input, which may contain (nested) Arrays and Objects, Numbers, Strings, Booleans and Dates.

Parameters

input: readonly T[]

Returns

readonly T[]