Skip to main content
Module

x/rambda/immutable.d.ts>endsWith

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

When iterable is a string, then it behaves as String.prototype.endsWith. When iterable is a list, then it uses R.equals to determine if the target list ends in the same way as the given target.

Parameters

target: string
iterable: string

Returns

boolean

Parameters

target: string

Returns

(iterable: string) => boolean

Parameters

target: readonly T[]
list: readonly T[]

Returns

boolean

Parameters

target: readonly T[]

Returns

(list: readonly T[]) => boolean