You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-polyfill.js 234B

123456789
  1. if (!String.prototype.trim) {
  2. (function() {
  3. // Make sure we trim BOM and NBSP
  4. var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
  5. String.prototype.trim = function() {
  6. return this.replace(rtrim, '');
  7. };
  8. })();
  9. }