index.js 809 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * lodash 3.0.1 (Custom Build) <https://lodash.com/>
  3. * Build: `lodash modern modularize exports="npm" -o ./`
  4. * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
  5. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  6. * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  7. * Available under MIT license <https://lodash.com/license>
  8. */
  9. /**
  10. * Checks if `value` is `undefined`.
  11. *
  12. * @static
  13. * @memberOf _
  14. * @category Lang
  15. * @param {*} value The value to check.
  16. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  17. * @example
  18. *
  19. * _.isUndefined(void 0);
  20. * // => true
  21. *
  22. * _.isUndefined(null);
  23. * // => false
  24. */
  25. function isUndefined(value) {
  26. return value === undefined;
  27. }
  28. module.exports = isUndefined;