Merge branch 'master' into new-snippets
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
3124
test/testlog
3124
test/testlog
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user