nullable-value
0.2.0 • Public • Published Nullable
What
A tiny javascript wrapper the result which may be undefined or null
Why
we have lots of boilerplate code to handle empty value
doAsync(function(result) {
result.forEach(function() {
});
});
so we can do this
doAsync(function(result) {
var result = Nullable(result).def([]).val;
result.forEach(function(item) {
});
});
Package Sidebar
Install
Weekly Downloads