Get the name of a number, even if it's stupidly big.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.

16 rindas
351 B

  1. import { Digit } from '../../../common'
  2. import NAMES from '../names'
  3. interface Ones {
  4. (x1: Digit): string
  5. }
  6. /**
  7. * Get the name of some number in the ones place.
  8. * @param {number} x1 - The number in the ones place.
  9. * @returns {string} The name of the number in the ones place.
  10. */
  11. const ones: Ones = (x1) => NAMES.units[x1]
  12. export default ones