Merge branch 'master' into new-snippets

This commit is contained in:
Angelos Chalaris
2018-09-01 13:08:18 +03:00
committed by GitHub
11 changed files with 1608 additions and 1606 deletions

View File

@ -9,7 +9,7 @@ const formatDuration = ms => {
};
return Object.entries(time)
.filter(val => val[1] !== 0)
.map(val => val[1] + ' ' + (val[1] !== 1 ? val[0] + 's' : val[0]))
.map(([key, val]) => `${val} ${key}${val !== 1 ? 's' : ''}`)
.join(', ');
};
module.exports = formatDuration;

View File

@ -1,2 +1,2 @@
const hide = (...el) => [...el].forEach(e => (e.style.display = 'none'));
const hide = els => els.forEach(e => (e.style.display = 'none'));
module.exports = hide;

File diff suppressed because it is too large Load Diff