Skip to content

Instantly share code, notes, and snippets.

View kde3kko's full-sized avatar

Francesco Lodovici kde3kko

View GitHub Profile
@kde3kko
kde3kko / leftpad.js
Created April 18, 2019 14:06
Simple leftpad implementation
const leftpad = (str,len,ch) => [...Array(len - str.length)].map(c => ch).join("")+str;
module.exports = leftpad;