Returns new object without keys from array. References preserved unless clone is provided.
Opposite of Pick.
Object objectAny object
Array keysShould be array of String. [String]
Boolean cloneIf present will return a new object without references to object. See Clone.
import { Omit } from "@taystack/js-helpers";
const obj1 = {a: 1, b: 2, c: 3};
const obj2 = Omit(obj1, ["a", "b"]);
obj2; // {c: 3}
Source: @taystack/js-helpers hosted on GitHub Author: taystack