Security update for Core, with self-updated composer
[yaffs-website] / node_modules / es6-promise / lib / es6-promise / utils.js
1 export function objectOrFunction(x) {
2   return typeof x === 'function' || (typeof x === 'object' && x !== null);
3 }
4
5 export function isFunction(x) {
6   return typeof x === 'function';
7 }
8
9 export function isMaybeThenable(x) {
10   return typeof x === 'object' && x !== null;
11 }
12
13 let _isArray;
14 if (!Array.isArray) {
15   _isArray = x => Object.prototype.toString.call(x) === '[object Array]';
16 } else {
17   _isArray = Array.isArray;
18 }
19
20 export const isArray = _isArray;