Module

x/lodash_es/src/string.js>padEnd

lodash for deno use
Latest
function padEnd
import { padEnd } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/string.js";

Pads string on the right side if it's shorter than length. Padding characters are truncated if they exceed length.

Examples

_.padEnd('abc', 6); // => 'abc '

.padEnd('abc', 6, '-'); // => 'abc_-_'

_.padEnd('abc', 3); // => 'abc'

Parameters

string
length
chars