projecte_ionic/node_modules/string.prototype.trimstart/shim.js
2022-02-09 18:30:03 +01:00

15 lines
337 B
JavaScript
Executable file

'use strict';
var define = require('define-properties');
var getPolyfill = require('./polyfill');
module.exports = function shimTrimStart() {
var polyfill = getPolyfill();
define(
String.prototype,
{ trimStart: polyfill },
{ trimStart: function () { return String.prototype.trimStart !== polyfill; } }
);
return polyfill;
};