mirror of
https://github.com/oceanprotocol/community-numbers.git
synced 2024-11-22 01:37:02 +01:00
10 lines
261 B
JavaScript
10 lines
261 B
JavaScript
/* eslint-disable no-console */
|
|
const chalk = require('chalk')
|
|
|
|
const log = text => console.log(text)
|
|
const logError = text => console.error(chalk.bold.red(text))
|
|
|
|
const arrSum = arr => arr.reduce((a, b) => a + b, 0)
|
|
|
|
module.exports = { log, logError, arrSum }
|