Check if x is an Array or a TypedArray. * @Returns true if x is an Array or a TypedArray, false otherwise.
(x)
| 465 | * @Returns true if x is an Array or a TypedArray, false otherwise. |
| 466 | */ |
| 467 | function isArrayOrTypedArray(x) { |
| 468 | return Boolean(typeof x === "object" && (Array.isArray(x) || (ArrayBuffer.isView(x) && !(x instanceof DataView)))) |
| 469 | } |
| 470 | |
| 471 | function makeQuerablePromise(promise) { |
| 472 | if (typeof promise !== "object") { |