mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
10 lines
244 B
JavaScript
10 lines
244 B
JavaScript
|
|
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;
|
|
}, {});
|
|
}
|