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

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

Examples

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

.padStart('abc', 6, '-'); // => '_-_abc'

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

Parameters

string
length
chars