Star
Docs/v5/hasIn()

hasIn()

Returns true if the key path is defined in the provided collection.

A functional alternative to collection.hasIn(keypath) which will also work with plain Objects and Arrays.

hasIn(collection, keyPath): boolean;