mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-08 00:39:13 +08:00
14 lines
337 B
Text
14 lines
337 B
Text
'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;
|
|
};
|