.endsWith(val)

Description

Endswith returns a boolean of if a string ends with a value

Parameters

Endswith has the parameter for the value to check if the input starts with it

Usage On Strings

num = "hello world"

log num.endsWith("hello")
// false

log num.endsWith("ld")
// true

Last updated