Skip to content

omit

Omit a list of properties from an object returning a new object with the properties that remain.

Usage

const a = { a: 1, b: 2, c: 3 };
omit(a, ["b"]); // => { a: 1, c: 3 }

Installation

Terminal window
npx atmx add helper omit