Sha256: 292a2151e79d472ab4f430666de44cceabf2bc77603f8ba669d335b7f0c072e2
Contents?: true
Size: 540 Bytes
Versions: 12
Compression:
Stored size: 540 Bytes
Contents
'use strict'; var $ = require('../internals/export'); var $trimEnd = require('../internals/string-trim').end; var forcedStringTrimMethod = require('../internals/forced-string-trim-method'); var FORCED = forcedStringTrimMethod('trimEnd'); var trimEnd = FORCED ? function trimEnd() { return $trimEnd(this); } : ''.trimEnd; // `String.prototype.{ trimEnd, trimRight }` methods // https://github.com/tc39/ecmascript-string-left-right-trim $({ target: 'String', proto: true, forced: FORCED }, { trimEnd: trimEnd, trimRight: trimEnd });
Version data entries
12 entries across 12 versions & 4 rubygems