Module

x/rambda/immutable.d.ts>endsWith

Faster and smaller alternative to Ramda
Go to Latest
function endsWith
import { endsWith } from "https://dotland.deno.dev/x/rambda@v9.2.0/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.

Type Parameters

T extends string

Parameters

question: T
str: string

Returns

boolean

Type Parameters

T extends string

Parameters

question: T

Returns

(str: string) => boolean

Parameters

question: readonly T[]
list: readonly T[]

Returns

boolean

Parameters

question: readonly T[]

Returns

(list: readonly T[]) => boolean