Skip to content

ends_with

Signature

ends_with(string, string)

Description

Reports whether the given string ends with the provided suffix argument.

Examples

ends_with('foobar', 'bar') == `true`
ends_with('foobar', 'foo') == `false`