Remove lodash omit

(re: #6087)
This commit is contained in:
Bryan Housel
2019-03-26 14:11:55 -04:00
parent e916d18473
commit 4821bf0a68
10 changed files with 41 additions and 26 deletions
+9
View File
@@ -0,0 +1,9 @@
export function utilObjectOmit(obj, omitKeys) {
return Object.keys(obj).reduce(function(result, key) {
if (omitKeys.indexOf(key) === -1) {
result[key] = obj[key]; // keep
}
return result;
}, {});
}