Sha256: ac8c16a644ebf246a1bbcdb57085760126826836c9f2a23d9736bfe8695f472d
Contents?: true
Size: 373 Bytes
Versions: 69
Compression:
Stored size: 373 Bytes
Contents
define(['../lang/toString', './repeat'], function(toString, repeat) { /** * Pad string with `char` if its' length is smaller than `minLen` */ function lpad(str, minLen, ch) { str = toString(str); ch = ch || ' '; return (str.length < minLen) ? repeat(ch, minLen - str.length) + str : str; } return lpad; });
Version data entries
69 entries across 69 versions & 2 rubygems