Module

x/lodash_es/src/pad.js>default

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

Pads string on the left and right sides if it's shorter than length. Padding characters are truncated if they can't be evenly divided by length.

Examples

_.pad('abc', 8); // => ' abc '

.pad('abc', 8, '-'); // => '-abc-_'

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

Parameters

string
length
chars