UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

11 lines (8 loc) 316 B
'use strict'; var getPolyfill = require('./polyfill'); var define = require('define-properties'); module.exports = function shimPadEnd() { var polyfill = getPolyfill(); define(String.prototype, { padEnd: polyfill }, { padEnd: function () { return String.prototype.padEnd !== polyfill; } }); return polyfill; };