alternative for lodash omit in javascript

Solutions on MaxInterview for alternative for lodash omit in javascript by the best coders in the world

showing results for - "alternative for lodash omit in javascript"
Jacobo
28 Jun 2018
1const omitSingle = (key, { [key]: _, ...obj }) => obj
2const profile = { name: 'Maria', age: 30 }
3
4const result = omitSingle('name', profile)
5
6console.log(result)
similar questions
queries leading to this page
alternative for lodash omit in javascript