Node-Red configuration
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.

es.string.trim.js 407B

123456789101112
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var $trim = require('../internals/string-trim').trim;
  4. var forcedStringTrimMethod = require('../internals/string-trim-forced');
  5. // `String.prototype.trim` method
  6. // https://tc39.es/ecma262/#sec-string.prototype.trim
  7. $({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
  8. trim: function trim() {
  9. return $trim(this);
  10. }
  11. });