Checks if an object has at least the specified keys
The value to check
Array of required keys
True if the object has at least all specified keys (extra keys are allowed)
hasAtLeastKeys({a: 1, b: 2}, ["a", "b"]) // truehasAtLeastKeys({a: 1, b: 2, c: 3}, ["a", "b"]) // true (extra key allowed)hasAtLeastKeys({a: 1}, ["a", "b"]) // false (missing key) Copy
hasAtLeastKeys({a: 1, b: 2}, ["a", "b"]) // truehasAtLeastKeys({a: 1, b: 2, c: 3}, ["a", "b"]) // true (extra key allowed)hasAtLeastKeys({a: 1}, ["a", "b"]) // false (missing key)
Checks if an object has at least the specified keys