lib/util.js
function findWhereKey(arr, key) {

  return arr.find(elem => {

    for (const [k] of getIterableObjectEntries(elem)) {

      if (k === key) {
        return true;
      }
    }
  });
}
function findWhereKey(arr, key) {

  return arr.find(elem => {

    for (const [k] of getIterableObjectEntries(elem)) {

      if (k === key) {
        return true;
      }
    }
  });
}
function findWhereKey ( arr , key ) { return arr . find ( elem => { for ( const [ k ] of getIterableObjectEntries ( elem ) ) { if ( k === key ) { return true ; } } } ) ; }
Returns the object where the given own key exists
@param {Array.<Object>} arr The source array of objects
@param {string} key The name of the own key to filter with
@returns {Object} The found object specified by the name of the given own key
Returns the object where the given own key exists