serverless-offline-msk
Version:
A serverless offline plugin that enables AWS MSK events
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;
};