Module

x/rambda/rambda.js>takeWhile

Faster and smaller alternative to Ramda
Go to Latest
function takeWhile
import { takeWhile } from "https://dotland.deno.dev/x/rambda@v9.2.0/rambda.js";

Parameters

fn: Predicate<string>
iterable: string

Returns

string

Parameters

fn: Predicate<string>

Returns

(iterable: string) => string

Parameters

fn: Predicate<T>
iterable: T[]

Parameters

fn: Predicate<T>

Returns

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