MCPcopy Index your code
hub / github.com/prototypejs/prototype / pad

Function pad

test/unit/static/js/mocha.js:2027–2030  ·  view source on GitHub ↗

* Pad the given `str` to `len`. * * @param {String} str * @param {String} len * @return {String} * @api private

(str, len)

Source from the content-addressed store, hash-verified

2025 */
2026
2027function pad(str, len) {
2028 str = String(str);
2029 return Array(len - str.length + 1).join(' ') + str;
2030}
2031
2032/**
2033 * Return a character diff for `err`.

Callers 1

mocha.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected