diff options
Diffstat (limited to 'node_modules/string.prototype.trimstart/shim.js')
-rw-r--r-- | node_modules/string.prototype.trimstart/shim.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/string.prototype.trimstart/shim.js b/node_modules/string.prototype.trimstart/shim.js new file mode 100644 index 000000000..5ea6dfdcf --- /dev/null +++ b/node_modules/string.prototype.trimstart/shim.js @@ -0,0 +1,14 @@ +'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; +}; |