e2ed
Version:
E2E testing framework over Playwright
11 lines (10 loc) • 342 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isObjectAndNotAnArray = isObjectAndNotAnArray;
/**
* Returns `true`, if value is `object` (and return `false` for arrays).
* @internal
*/
function isObjectAndNotAnArray(x) {
return x !== null && typeof x === 'object' && Array.isArray(x) === false;
}