Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

_baseSome.js 619B

12345678910111213141516171819202122
  1. var baseEach = require('./_baseEach');
  2. /**
  3. * The base implementation of `_.some` without support for iteratee shorthands.
  4. *
  5. * @private
  6. * @param {Array|Object} collection The collection to iterate over.
  7. * @param {Function} predicate The function invoked per iteration.
  8. * @returns {boolean} Returns `true` if any element passes the predicate check,
  9. * else `false`.
  10. */
  11. function baseSome(collection, predicate) {
  12. var result;
  13. baseEach(collection, function(value, index, collection) {
  14. result = predicate(value, index, collection);
  15. return !result;
  16. });
  17. return !!result;
  18. }
  19. module.exports = baseSome;