Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

shim.js 337B

1234567891011121314
  1. 'use strict';
  2. var define = require('define-properties');
  3. var getPolyfill = require('./polyfill');
  4. module.exports = function shimTrimRight() {
  5. var polyfill = getPolyfill();
  6. define(
  7. String.prototype,
  8. { trimRight: polyfill },
  9. { trimRight: function () { return String.prototype.trimRight !== polyfill; } }
  10. );
  11. return polyfill;
  12. };