UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

12 lines (11 loc) 421 B
export default createPadding; /** * Creates the padding for `string` based on `length`. The `chars` string * is truncated if the number of characters exceeds `length`. * * @private * @param {number} length The padding length. * @param {string} [chars=' '] The string used as padding. * @returns {string} Returns the padding for `string`. */ declare function createPadding(length: number, chars?: string): string;