MCPcopy
hub / github.com/SeleniumHQ/selenium / trim

Function trim

third_party/js/qunit/qunit.js:6463–6469  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

6461 });
6462 var dropdownData = null;
6463 function trim(string) {
6464 if (typeof string.trim === 'function') {
6465 return string.trim();
6466 } else {
6467 return string.replace(/^\s+|\s+$/g, '');
6468 }
6469 }
6470 function addEvent(elem, type, fn) {
6471 elem.addEventListener(type, fn, false);
6472 }

Callers 2

removeClassFunction · 0.85
interceptNavigationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected