Show More
Commit Description:
force log out when password change
Commit Description:
force log out when password change
References:
File last commit:
Show/Diff file:
Action:
node_modules/string.prototype.trimstart/polyfill.js
| 15 lines
| 463 B
| application/javascript
| JavascriptLexer
|
r789 | 'use strict'; | |||
var implementation = require('./implementation'); | ||||
module.exports = function getPolyfill() { | ||||
if (!String.prototype.trimStart && !String.prototype.trimLeft) { | ||||
return implementation; | ||||
} | ||||
var zeroWidthSpace = '\u200b'; | ||||
var trimmed = zeroWidthSpace.trimStart ? zeroWidthSpace.trimStart() : zeroWidthSpace.trimLeft(); | ||||
if (trimmed !== zeroWidthSpace) { | ||||
return implementation; | ||||
} | ||||
return String.prototype.trimStart || String.prototype.trimLeft; | ||||
}; | ||||