g.js — graphical objects for JavaScript

stringTrimstringTrim

Remove white space from the start and end of the string.

g.stringTrim('  hello  ');

Parameters

  • s: The input string.