UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

30 lines (27 loc) 639 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ramda = require("ramda"); /** * Returns true if argument is neither null or undefined. * * @func * @category Logic * * @example * * R_.isNotNil(null) // false * R_.isNotNil(undefined) // false * R_.isNotNil('') // true * R_.isNotNil(false) // true * R_.isNotNil(0) // true * R_.isNotNil([]) // true * R_.isNotNil({}) // true * * @sig a -> Boolean */ var isNotNil = (0, _ramda.complement)(_ramda.isNil); var _default = isNotNil; exports.default = _default;