lib/utils/index.js
function findMeta(meta, names) {
  if (!meta) return null;

  if (!_.isArray(names)) names = [ names ];

  let record;

  names.some((name) => {
    record = _.find(meta, (item) => item.name === name);
    return record;
  });

  return (record || {}).value;
}
function findMeta(meta, names) {
  if (!meta) return null;

  if (!_.isArray(names)) names = [ names ];

  let record;

  names.some((name) => {
    record = _.find(meta, (item) => item.name === name);
    return record;
  });

  return (record || {}).value;
}
function findMeta ( meta , names ) { if ( ! meta ) return null ; if ( ! _ . isArray ( names ) ) names = [ names ] ; let record ; names . some ( ( name ) => { record = _ . find ( meta , ( item ) => item . name === name ) ; return record ; } ) ; return ( record || { } ) . value ; }
Get meta value by list of names in priority order
Get meta value by list of names in priority order