Useful Code samples

To Remove or Delete a Key from an Object

const myObject = {
  a: 1,
  b: 2,
  c: 3
};
const { b, ...noB } = myObject;
console.log(noB); // => { a: 1, c: 3 }

Last updated