MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / isObject

Function isObject

scripts/profile/utils.ts:9–11  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

7import type {ProfileScenario} from './types.ts';
8
9export function isObject(value: unknown): value is Record<string, unknown> {
10 return typeof value === 'object' && value !== null;
11}
12
13export function formatBytes(bytes: number): string {
14 return `${(bytes / 1024 / 1024).toFixed(2)} MiB`;

Callers 4

#handleMessageMethod · 0.90
getHeapUsageMethod · 0.90
isScenarioModuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected