util/meta.js
function (type, name) {
  if (metaDictByName[type][name]) {
    return metaDictByName[type][name];
  } else if (name.endsWith('Type')) {
    return metaDictByName[type][name.slice(0, -4)];
  }
  return undefined;
}
function (type, name) {
  if (metaDictByName[type][name]) {
    return metaDictByName[type][name];
  } else if (name.endsWith('Type')) {
    return metaDictByName[type][name.slice(0, -4)];
  }
  return undefined;
}
function ( type , name ) { if ( metaDictByName [ type ] [ name ] ) { return metaDictByName [ type ] [ name ] ; } else if ( name . endsWith ( 'Type' ) ) { return metaDictByName [ type ] [ name . slice ( 0 , - 4 ) ] ; } return undefined ; }
For use when already inside a promise
For use when already inside a promise