Get the name of a number, even if it's stupidly big.
選択できるのは25トピックまでです。
トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
このリポジトリはアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュや、課題・プルリクエストのオープンはできません。
|
- import { Digit } from '../../../common'
- import NAMES from '../names'
-
- interface Ones {
- (x1: Digit): string
- }
-
- /**
- * Get the name of some number in the ones place.
- * @param {number} x1 - The number in the ones place.
- * @returns {string} The name of the number in the ones place.
- */
- const ones: Ones = (x1) => NAMES.units[x1]
-
- export default ones
|