source:
node_modules/es-toolkit/dist/object/omit.mjs@
ba17441
| Last change on this file since ba17441 was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 204 bytes | |
| Line | |
|---|---|
| 1 | function omit(obj, keys) { |
| 2 | const result = { ...obj }; |
| 3 | for (let i = 0; i < keys.length; i++) { |
| 4 | const key = keys[i]; |
| 5 | delete result[key]; |
| 6 | } |
| 7 | return result; |
| 8 | } |
| 9 | |
| 10 | export { omit }; |
Note:
See TracBrowser
for help on using the repository browser.
