coalescy
Simple function that return the first non null or undefined argument passed to it
Install
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
a || b
but it works on falsie values too
Example
var clsc = ;var obj = ; // obj = [];obj = ; // obj = {};obj = ; // obj = []; // the first non nullobj = // 0