Returns true if the key path is defined in the provided collection.
hasIn(collection: unknown, keyPath: Iterable<unknown>): boolean
A functional alternative to collection.hasIn(keypath)
which will also
work with plain Objects and Arrays.
const { hasIn } = require('immutable')
hasIn({ x: { y: { z: 123 }}}, ['x', 'y', 'z']) // true
hasIn({ x: { y: { z: 123 }}}, ['x', 'q', 'p']) // falserun it