Get the name of a number, even if it's stupidly big.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。

12 行
286 B

  1. import { Digit } from '../../../../common'
  2. import NAMES from '../../names'
  3. interface Ones {
  4. (kiloOnes: Digit, special: boolean): string
  5. }
  6. const ones: Ones = (kiloOnes, special = false) =>
  7. special ? NAMES.kiloSpecialUnits[kiloOnes] : NAMES.kiloUnits[kiloOnes]
  8. export default ones