Omit property variable when using object destructuring
A possible way is to use // eslint-disable-next-line no-unused-vars e.g. // eslint-disable-next-line no-unused-vars const { a, …rest } = initObject Or by using ignoreRestSiblings The ignoreRestSiblings option is a boolean (default: false). Using a Rest Property it is possible to “omit” properties from an object, but by default the sibling properties are marked as “unused”. … Read more