blob: 23314f0439460883158e9dacb338bc97b1e735df [file] [log] [blame]
'use strict';
var define = require('define-properties');
var getPolyfill = require('./polyfill');
module.exports = function shimTrimLeft() {
var polyfill = getPolyfill();
define(
String.prototype,
{ trimLeft: polyfill },
{ trimLeft: function () { return String.prototype.trimLeft !== polyfill; } }
);
return polyfill;
};