Show More
Commit Description:
fix wrong merge
Commit Description:
fix wrong merge
References:
File last commit:
Show/Diff file:
Action:
node_modules/string.prototype.trimend/shim.js
| 14 lines
| 329 B
| application/javascript
| JavascriptLexer
|
r789 | 'use strict'; | |||
var define = require('define-properties'); | ||||
var getPolyfill = require('./polyfill'); | ||||
module.exports = function shimTrimEnd() { | ||||
var polyfill = getPolyfill(); | ||||
define( | ||||
String.prototype, | ||||
{ trimEnd: polyfill }, | ||||
{ trimEnd: function () { return String.prototype.trimEnd !== polyfill; } } | ||||
); | ||||
return polyfill; | ||||
}; | ||||