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/base-argv/utils.js

41 lines
692 B

'use strict';
var utils = require('lazy-cache')(require);
var fn = require;
require = utils;
/**
* Lazily required module dependencies
*/
require('arr-diff', 'diff');
require('arr-union', 'union');
require('define-property', 'define');
require('expand-args');
require('extend-shallow', 'extend');
require = fn;
/**
* Cast the given `value` to an array.
*
* ```js
* utils.arrayify('foo');
* //=> ['foo']
*
* utils.arrayify(['foo']);
* //=> ['foo']
* ```
* @param {String|Array} `value`
* @return {Array}
* @api public
*/
utils.arrayify = function(val) {
return val ? (Array.isArray(val) ? val : [val]) : [];
};
/**
* Expose `utils` modules
*/
module.exports = utils;