Skip to main content
Module

x/ramda/source/takeWhile.js

:ram: Practical functional Javascript
Latest
import * as mod from "https://deno.land/x/ramda@v0.27.2/source/takeWhile.js";

Variables

Returns a new list containing the first n elements of a given list, passing each value to the supplied predicate function, and terminating when the predicate function returns false. Excludes the element that caused the predicate function to fail. The predicate function is passed one argument: (value).