graphql
Version:
A Query Language and Runtime which can target any service.
1 lines • 552 B
Source Map (JSON)
{"version":3,"file":"isObjectLike.js","sourceRoot":"","sources":["../../src/jsutils/isObjectLike.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,YAAY,CAC1B,KAAc;IAEd,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACpD,CAAC","sourcesContent":["/**\n * Return true if `value` is object-like. A value is object-like if it's not\n * `null` and has a `typeof` result of \"object\".\n *\n * @internal\n */\nexport function isObjectLike(\n value: unknown,\n): value is { [key: string]: unknown } {\n return typeof value == 'object' && value !== null;\n}\n"]}