StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/@interactjs/utils/is.js

23 lines
1.1 KiB

// tslint:disable variable-name
import isWindow from "./isWindow.js";
import win from "./window.js";
export const window = thing => thing === win.window || isWindow(thing);
export const docFrag = thing => object(thing) && thing.nodeType === 11;
export const object = thing => !!thing && typeof thing === 'object';
export const func = thing => typeof thing === 'function';
export const number = thing => typeof thing === 'number';
export const bool = thing => typeof thing === 'boolean';
export const string = thing => typeof thing === 'string';
export const element = thing => {
if (!thing || typeof thing !== 'object') {
return false;
}
const _window = win.getWindow(thing) || win.window;
return /object|function/.test(typeof _window.Element) ? thing instanceof _window.Element // DOM2
: thing.nodeType === 1 && typeof thing.nodeName === 'string';
};
export const plainObject = thing => object(thing) && !!thing.constructor && /function Object\b/.test(thing.constructor.toString());
export const array = thing => object(thing) && typeof thing.length !== 'undefined' && func(thing.splice);
//# sourceMappingURL=is.js.map