g.js — graphical objects for JavaScript

startsWithstartsWith

Check if the string starts with a given string.

g.startsWith('Hello', 'Hell');

Parameters

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

See Also

  • endsWith: Check if the string ends with a given string.