Show More
Commit Description:
fix wrong merge
Commit Description:
fix wrong merge
References:
File last commit:
Show/Diff file:
Action:
node_modules/string.prototype.trimright/polyfill.js
| 14 lines
| 325 B
| application/javascript
| JavascriptLexer
|
r789 | 'use strict'; | |||
var implementation = require('./implementation'); | ||||
module.exports = function getPolyfill() { | ||||
if (!String.prototype.trimRight) { | ||||
return implementation; | ||||
} | ||||
var zeroWidthSpace = '\u200b'; | ||||
if (zeroWidthSpace.trimRight() !== zeroWidthSpace) { | ||||
return implementation; | ||||
} | ||||
return String.prototype.trimRight; | ||||
}; | ||||