UNPKG

imagelogger

Version:

Shows an image in console.

14 lines (13 loc) 367 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.splitEvery = void 0; function splitEvery(str, amount) { let ret = []; for (let i = 0; i < str.length; i++) { if (i % amount === 0) ret.push(''); ret[ret.length - 1] += str[i]; } return ret; } exports.splitEvery = splitEvery;