UNPKG

winbox-ui-next

Version:

We Design Vue 2.0: A Vue.js 3 UI Library

13 lines (12 loc) 402 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports[Symbol.toStringTag] = "Module"; function padStart(string, length, char = " ") { const s = String(string); if (!length) { return s; } const newString = s.length < length ? `${char}${s}` : s; return newString.length < length ? padStart(newString, length, char) : newString; } exports.padStart = padStart;