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

x/rambda/immutable.d.ts>splitEvery

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

It splits input into slices of sliceLength.

Parameters

sliceLength: number
input: readonly T[]

Returns

readonly ((readonly T[]))[]

Parameters

sliceLength: number
input: string

Returns

readonly string[]

Parameters

sliceLength: number

Returns

{ (input: string): readonly string[]; <T>(input: readonly T[]): readonly ((readonly T[]))[]; }