MCPcopy Index your code
hub / github.com/immutable-js/immutable-js / hasIn

Function hasIn

src/functional/hasIn.ts:12–17  ·  view source on GitHub ↗
(
  collection: GetInParameters[0],
  keyPath: GetInParameters[1]
)

Source from the content-addressed store, hash-verified

10 * work with plain Objects and Arrays.
11 */
12export function hasIn(
13 collection: GetInParameters[0],
14 keyPath: GetInParameters[1]
15): boolean {
16 return getIn(collection, keyPath, NOT_SET) !== NOT_SET;
17}

Callers

nothing calls this directly

Calls 1

getInFunction · 0.90

Tested by

no test coverage detected