UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

11 lines (9 loc) 204 B
function omit(obj, keys) { const result = { ...obj }; for (let i = 0; i < keys.length; i++) { const key = keys[i]; delete result[key]; } return result; } export { omit };