ramda-extension
Version:
Helpful functions built on top of the mighty Ramda
18 lines (17 loc) • 299 B
JavaScript
import { find } from 'ramda';
import notNil from './notNil';
/**
* Returns first not nil value
*
* @func
* @category List
*
* @example
*
* R_.findNotNil([null, undefined, 0, true]) // 0
*
* @sig [a] -> a
*
*/
var findNotNil = /*#__PURE__*/find(notNil);
export default findNotNil;