> For the complete documentation index, see [llms.txt](https://bharat-tiwari.gitbook.io/our-tech-journal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bharat-tiwari.gitbook.io/our-tech-journal/javascript/useful-code-samples.md).

# 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 }
```
