swc/crates/swc_bundler/tests/.cache/deno/5862b1065b772747707c346af8887b051db043a1.ts
2021-11-09 20:42:49 +09:00

10 lines
320 B
TypeScript

// Loaded from https://deno.land/x/graphql_deno@v15.0.0/lib/jsutils/isObjectLike.js
/**
* Return true if `value` is object-like. A value is object-like if it's not
* `null` and has a `typeof` result of "object".
*/
export default function isObjectLike(value) {
return typeof value == 'object' && value !== null;
}