How to use the dotaconstants.countries function in dotaconstants

To help you get started, we’ve selected a few dotaconstants examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github odota / core / svc / distributions.js View on Github external
results.rows = results.rows.map((r) => {
    const ref = constants.countries[r.loccountrycode];
    r.common = ref ? ref.name.common : r.loccountrycode;
    return r;
  });
  return results;
github odota / core / svc / worker.js View on Github external
results.rows = results.rows.map((r) => {
          const ref = constants.countries[r.loccountrycode];
          r.common = ref ? ref.name.common : r.loccountrycode;
          return r;
        });
      };