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

x/rambda/rambda.js>intersperse

Faster and smaller alternative to Ramda
Go to Latest
function intersperse
import { intersperse } from "https://deno.land/x/rambda@9.3.0/rambda.js";

It adds a separator between members of list.

Parameters

separator: T
list: T[]

Parameters

separator: T

Returns

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