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