Travis build: 1045 [cron]

This commit is contained in:
30secondsofcode
2019-03-06 15:13:18 +00:00
parent 08c9806c72
commit 2493c5ab62
7 changed files with 37 additions and 37 deletions

4
dist/_30s.es5.js vendored
View File

@@ -621,8 +621,8 @@
};
var differenceBy = function differenceBy(a, b, fn) {
var s = new Set(b.map(fn));
return a.filter(function (x) {
return !s.has(fn(x));
return a.map(fn).filter(function (el) {
return !s.has(el);
});
};
var differenceWith = function differenceWith(arr, val, comp) {

File diff suppressed because one or more lines are too long

12
dist/_30s.esm.js vendored
View File

@@ -257,7 +257,7 @@ const difference = (a, b) => {
};
const differenceBy = (a, b, fn) => {
const s = new Set(b.map(fn));
return a.filter(x => !s.has(fn(x)));
return a.map(fn).filter(el => !s.has(el));
};
const differenceWith = (arr, val, comp) => arr.filter(a => val.findIndex(b => comp(a, b)) === -1);
const dig = (obj, target) =>
@@ -338,8 +338,8 @@ const extendHex = shortHex =>
const factorial = n =>
n < 0
? (() => {
throw new TypeError('Negative numbers are not allowed!');
})()
throw new TypeError('Negative numbers are not allowed!');
})()
: n <= 1
? 1
: n * factorial(n - 1);
@@ -985,9 +985,9 @@ const reject = (pred, array) => array.filter((...args) => !pred(...args));
const remove = (arr, func) =>
Array.isArray(arr)
? arr.filter(func).reduce((acc, val) => {
arr.splice(arr.indexOf(val), 1);
return acc.concat(val);
}, [])
arr.splice(arr.indexOf(val), 1);
return acc.concat(val);
}, [])
: [];
const removeNonASCII = str => str.replace(/[^\x20-\x7E]/g, '');
const renameKeys = (keysMap, obj) =>

12
dist/_30s.js vendored
View File

@@ -263,7 +263,7 @@
};
const differenceBy = (a, b, fn) => {
const s = new Set(b.map(fn));
return a.filter(x => !s.has(fn(x)));
return a.map(fn).filter(el => !s.has(el));
};
const differenceWith = (arr, val, comp) => arr.filter(a => val.findIndex(b => comp(a, b)) === -1);
const dig = (obj, target) =>
@@ -344,8 +344,8 @@
const factorial = n =>
n < 0
? (() => {
throw new TypeError('Negative numbers are not allowed!');
})()
throw new TypeError('Negative numbers are not allowed!');
})()
: n <= 1
? 1
: n * factorial(n - 1);
@@ -991,9 +991,9 @@
const remove = (arr, func) =>
Array.isArray(arr)
? arr.filter(func).reduce((acc, val) => {
arr.splice(arr.indexOf(val), 1);
return acc.concat(val);
}, [])
arr.splice(arr.indexOf(val), 1);
return acc.concat(val);
}, [])
: [];
const removeNonASCII = str => str.replace(/[^\x20-\x7E]/g, '');
const renameKeys = (keysMap, obj) =>