lib/sugar.js
/*
  This function allows you to test whether some values in an object match a certain criteria. 
  For example, are at least some of the values greater than 100? 
  The function receives an object and a tester function. 
  If at least 1 of the values in the object pass the tester function, true is returned. 
  Otherwise, return false.
*/
This function allows you to test whether some values in an object match a certain criteria.
For example, are at least some of the values greater than 100.
The function receives an object and a tester function.
If at least 1 of the values in the object pass the tester function, true is returned.
Otherwise, return false.
This function allows you to test whether some values in an object match a certain criteria . For example are at least some of the values greater than 100 . The function receives an object and a tester function . If at least 1 of the values in the object pass the tester function true is returned . Otherwise return false .
function some(obj, func) {
  const values = Object.values(obj);
  let match = false;
  for(let el of values) {
    if(func(el)) { 
      match = true; 
    }
  }
  return match;
}
function some ( obj , func ) { const values = Object . values ( obj ) ; let match = false ; for ( let el of values ) { if ( func ( el ) ) { match = true ; } } return match ; }
This function allows you to test whether some values in an object match a certain criteria.
This function allows you to test whether some values in an object match a certain criteria .