swc/crates/swc_bundler/tests/.cache/deno/1d7d1c1e1a2c07b345548f79d2e593adb3054812.ts
2021-11-09 20:42:49 +09:00

26 lines
608 B
TypeScript

// Loaded from https://deno.land/x/ramda@v0.27.2/source/isNil.js
import _curry1 from './internal/_curry1.js';
/**
* Checks if the input value is `null` or `undefined`.
*
* @func
* @memberOf R
* @since v0.9.0
* @category Type
* @sig * -> Boolean
* @param {*} x The value to test.
* @return {Boolean} `true` if `x` is `undefined` or `null`, otherwise `false`.
* @example
*
* R.isNil(null); //=> true
* R.isNil(undefined); //=> true
* R.isNil(0); //=> false
* R.isNil([]); //=> false
*/
var isNil = _curry1(function isNil(x) { return x == null; });
export default isNil;