// eslint-disable-next-line import/prefer-default-export
export const getFirstValueOfKey = (generations, key) => {
  // eslint-disable-next-line no-prototype-builtins
  if (generations && generations.hasOwnProperty(key)) {
    return generations[key][0];
  }
  return false;
};
