g.js — graphical objects for JavaScript

endsWithendsWith

Check if the string ends with a given string.

g.endsWith('Hello', 'lo');

Parameters

  • s: The input string.
  • value: The substring to look for.

See Also

  • startsWith: Check if the string starts with a given string.