omnibelt/is-not-nil.js

const complement = require('ramda/src/complement');
const isNil = require('ramda/src/isNil');

/**
 * Takes a value and returns true if the value is neither null nor undefined;
 * returns false if not.
 *
 * @signature * -> Boolean
 */
const isNotNil = complement(isNil);

module.exports = isNotNil;