function findMove(selectedMove) {
    for (let i = 0; i < moveList.length; i++) {
        if (selectedMove === moveList[i].name) {
            return moveList[i];
        }
    }
}
/**
 * Finds the data of the chosen move.
 * @param {move} selectedMove the chosen move.
 * @returns the chosen moves data and stats.
 */
Finds the data of the chosen move.
@param {move} selectedMove the chosen move.
@returns the chosen moves data and stats.
Finds the data of the chosen move . @param { move } selectedMove the chosen move . @returns the chosen moves data and stats .
function findMove(selectedMove) {
    for (let i = 0; i < moveList.length; i++) {
        if (selectedMove === moveList[i].name) {
            return moveList[i];
        }
    }
}
function findMove ( selectedMove ) { for ( let i = 0 ; i < moveList . length ; i ++ ) { if ( selectedMove === moveList [ i ] . name ) { return moveList [ i ] ; } } }
Finds the data of the chosen move.
Finds the data of the chosen move .