UNPKG

msw

Version:

The industry standard for API mocking in JavaScript.

7 lines (6 loc) • 203 B
/** * Determines if the given value is an object. */ export function isObject(value: any): value is Record<string, any> { return value != null && typeof value === 'object' && !Array.isArray(value) }