String
Endswith

_.endsWith()

_.endsWith([string=''], [target], [position=string.length])

Checks if string ends with the given target string.

Arguments

[string=''] (string): The string to inspect.
[target] (string): The string to search for.
[position=string.length] (number): The position to search up to.

Returns

(boolean): Returns true if string ends with target, else false.

Example

Deep