UNPKG

e2ed

Version:

E2E testing framework over Playwright

17 lines (16 loc) 494 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isArray = isArray; exports.isThenable = isThenable; /** * Returns `true`, if value is array, and `false` otherwise. */ function isArray(value) { return Array.isArray(value); } /** * Returns `true`, if value is thenable (an object with a `then` method), and `false` otherwise. */ function isThenable(value) { return value instanceof Object && 'then' in value && typeof value.then === 'function'; }