Checks if a key or an array of keys exists on an object
const obj = { "foo": true, "bar": false};hasKey(obj, 'foo');=> truehasKey(obj, ['foo', 'bar']);=> true
An object
The keys to check
Generated using TypeDoc
Checks if a key or an array of keys exists on an object
Example