Latest
function endsWith
import { endsWith } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/string.js";

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