UNPKG

@acaelum/cake

Version:

Fake browser wrapper that will power JS-12 course at Caelum

13 lines (10 loc) 305 B
import isNumber from 'lodash/isNumber' export function printLogs(...logs) { const resultString = logs .map(toPrint => isNumber(toPrint) ? Array.from(Array(toPrint - 1)).map(() => '\n').join('') : toPrint ) .join('\n') console.log(resultString) }