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

shim.js 314B

12345678910
  1. 'use strict';
  2. var define = require('define-properties');
  3. var getPolyfill = require('./polyfill');
  4. module.exports = function shimStringTrim() {
  5. var polyfill = getPolyfill();
  6. define(String.prototype, { trim: polyfill }, { trim: function () { return String.prototype.trim !== polyfill; } });
  7. return polyfill;
  8. };