Travis build: 862

This commit is contained in:
30secondsofcode
2018-12-06 12:00:26 +00:00
parent a4f57a7024
commit 796eb9db9f
6 changed files with 15 additions and 15 deletions

View File

@ -964,9 +964,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) =>