hummus-recipe
Version:
A powerful PDF tool for NodeJS based on HummusJS
15 lines (12 loc) • 333 B
JavaScript
;
var define = require('define-properties');
var getPolyfill = require('./polyfill');
module.exports = function shimTrimLeft() {
var polyfill = getPolyfill();
define(
String.prototype,
{ trimLeft: polyfill },
{ trimLeft: function () { return String.prototype.trimLeft !== polyfill; } }
);
return polyfill;
};