@robotical/martyblocks
Version:
MartyBlocks based on Scratch for Marty the Robot by Robotical
15 lines (12 loc) • 330 B
JavaScript
;
var define = require('define-properties');
var getPolyfill = require('./polyfill');
module.exports = function shimStringTrim() {
var polyfill = getPolyfill();
define(String.prototype, { trim: polyfill }, {
trim: function testTrim() {
return String.prototype.trim !== polyfill;
}
});
return polyfill;
};