Skip to main content
Module

x/core_fn/uncurry/mod.ts>endsWith

A collection of built-in object method and property as currying function
Latest
variable endsWith
import { endsWith } from "https://deno.land/x/core_fn@v1.0.0-beta.16/uncurry/mod.ts";

Checks if a string ends with the provided substring.

Examples

Example 1

endsWith('world', 'hello world') // true
endsWith('earth', 'hello world') // false

type

(val: string, target: string) => boolean