UNPKG

pokemon.js

Version:

A JavaScript library that makes interacting with PokeAPI easier

7 lines 300 B
const get = require('../../utils/get'); /** Returns pokemon that could potentially be ditto. * @returns {Promise<Array>} */ module.exports = async function possibleDitto() { let dittoPkm = await get('possible_ditto_pokemon.json'); return Object.values(dittoPkm).map(pkm => pkm.name); }