export function objectOrFunction(x) { let type = typeof x; return x !== null && (type === 'object' || type === 'function'); } export function isFunction(x) { return typeof x === 'function'; } export function isMaybeThenable(x) { return x !== null && typeof x === 'object'; } let _isArray; if (Array.isArray) { _isArray = Array.isArray; } else { _isArray = x => Object.prototype.toString.call(x) === '[object Array]'; } export const isArray = _isArray;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
promise | Folder | 0755 |
|
|
-internal.js | File | 5.19 KB | 0644 |
|
asap.js | File | 3.1 KB | 0644 |
|
enumerator.js | File | 2.78 KB | 0644 |
|
polyfill.js | File | 724 B | 0644 |
|
promise.js | File | 9.81 KB | 0644 |
|
then.js | File | 609 B | 0644 |
|
utils.js | File | 468 B | 0644 |
|