Skip to main content
Module

x/lodash_es/mod.ts>endsWith

lodash for deno use
Latest
function endsWith
import { endsWith } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

Checks if string ends with the given target string.

Examples

_.endsWith('abc', 'c'); // => true

_.endsWith('abc', 'b'); // => false

_.endsWith('abc', 'b', 2); // => true

Parameters

string
target
position