Travis build: 684

This commit is contained in:
30secondsofcode
2018-10-25 10:28:14 +00:00
parent e44800555f
commit fb76573a43
4 changed files with 4 additions and 8 deletions

View File

@ -642,8 +642,7 @@ const lcm = (...arr) => {
const _lcm = (x, y) => (x * y) / gcd(x, y);
return [...arr].reduce((a, b) => _lcm(a, b));
};
const longestItem = (val, ...vals) =>
[val, ...vals].reduce((a, x) => (x.length > a.length ? x : a));
const longestItem = (...vals) => vals.reduce((a, x) => (x.length > a.length ? x : a));
const lowercaseKeys = obj =>
Object.keys(obj).reduce((acc, key) => {
acc[key.toLowerCase()] = obj[key];