You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
556 B

4 years ago
  1. import _curry1 from "./internal/_curry1.js";
  2. /**
  3. * Checks if the input value is `null` or `undefined`.
  4. *
  5. * @func
  6. * @memberOf R
  7. * @since v0.9.0
  8. * @category Type
  9. * @sig * -> Boolean
  10. * @param {*} x The value to test.
  11. * @return {Boolean} `true` if `x` is `undefined` or `null`, otherwise `false`.
  12. * @example
  13. *
  14. * R.isNil(null); //=> true
  15. * R.isNil(undefined); //=> true
  16. * R.isNil(0); //=> false
  17. * R.isNil([]); //=> false
  18. */
  19. var isNil =
  20. /*#__PURE__*/
  21. _curry1(function isNil(x) {
  22. return x == null;
  23. });
  24. export default isNil;