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

x/rambda/mod.ts>insert

Faster and smaller alternative to Ramda
Go to Latest
function insert
import { insert } from "https://deno.land/x/rambda@9.2.1/mod.ts";

Parameters

index: number

Returns

<T>(itemToInsert: T, list: T[]) => T[]

Parameters

index: number
itemToInsert: T

Returns

(list: T[]) => T[]

Parameters

index: number
itemToInsert: T
list: T[]