Skip to main content
Module

x/ramda/mod.ts>takeLastWhile

:ram: Practical functional Javascript
Latest
variable takeLastWhile
import { takeLastWhile } from "https://deno.land/x/ramda@v0.27.2/mod.ts";

Returns a new list containing the last 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).