Ohm-Management - Projektarbeit B-ME
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.

_baseIsSet.js 478B

123456789101112131415161718
  1. var getTag = require('./_getTag'),
  2. isObjectLike = require('./isObjectLike');
  3. /** `Object#toString` result references. */
  4. var setTag = '[object Set]';
  5. /**
  6. * The base implementation of `_.isSet` without Node.js optimizations.
  7. *
  8. * @private
  9. * @param {*} value The value to check.
  10. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  11. */
  12. function baseIsSet(value) {
  13. return isObjectLike(value) && getTag(value) == setTag;
  14. }
  15. module.exports = baseIsSet;