UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

12 lines (7 loc) 280 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const toString = require('../util/toString.js'); function padStart(str, length = 0, chars = ' ') { return toString.toString(str).padStart(length, chars); } exports.padStart = padStart;