Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rambda/immutable.d.ts>clone

Faster and smaller alternative to Ramda
Go to Latest
function clone
import { clone } from "https://deno.land/x/rambda@9.2.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[]