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.
33 lines
806 B
33 lines
806 B
4 years ago
|
[](https://npmjs.org/package/coalescy)
|
||
|
[](https://travis-ci.org/royriojas/coalescy)
|
||
|
|
||
|
# coalescy
|
||
|
> Simple function that return the first non null or undefined argument passed to it
|
||
|
|
||
|
## Install
|
||
|
|
||
|
```bash
|
||
|
npm i --save coalescy
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
`coalescy` simply return the first non nully of the passed elements. Null if all the values are null
|
||
|
|
||
|
it works the same as
|
||
|
|
||
|
```javascript
|
||
|
a || b
|
||
|
```
|
||
|
|
||
|
but it works on falsie values too
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```javascript
|
||
|
var clsc = require('coalescy');
|
||
|
var obj = clsc(null, []); // obj = [];
|
||
|
obj = clsc(null, {}); // obj = {};
|
||
|
obj = clsc(null, [], {}); // obj = []; // the first non null
|
||
|
obj = clsc(null, undefined, 0, []) // 0
|
||
|
```
|