the object :
const item = {id:1}
the function:
// get is function, it can be _id or something else
const getId = (item) => item.id
const doSomthing = (obj, getId ) =>{
// here i wont to delete id from obj.
}
So, there is an option to delete id key?
delete getId(item)
Here is example of what i wont, so there is some way to do that?