@aws/pdk
Version:
All documentation is located at: https://aws.github.io/aws-pdk
15 lines (12 loc) • 329 B
JavaScript
;
var define = require('define-properties');
var getPolyfill = require('./polyfill');
module.exports = function shimTrimEnd() {
var polyfill = getPolyfill();
define(
String.prototype,
{ trimEnd: polyfill },
{ trimEnd: function () { return String.prototype.trimEnd !== polyfill; } }
);
return polyfill;
};