Skip to content

Comment on Watparent

Comments

Handy way to make some padding:

    function pad(n, c) { return Array(n+1).join(c); }

    // pad(6, "-") === "------"
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.