Instead of using the tried and tested delete operator, you could show how evolved you are by employing ES6 syntax.

Instead of using the delete operator:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
const model = {
  _id: '1234-1234-1234-1234',
  name: 'Joe',
  surname: 'Soap',
};
delete model._id;

/**
 * Results in:
 *
 * {
 *  name: 'Joe',
 *  surname: 'Soap',
 * }
 */

Use ES6 syntax:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
const model = {
  _id: '1234-1234-1234-1234',
  name: 'Joe',
  surname: 'Soap',
};
const { _id, ...filteredModel } = model;

/**
 * Results in:
 *
 * {
 *  name: 'Joe',
 *  surname: 'Soap',
 * }
 */

JavaScript like a boss.