Get the name of a number, even if it's stupidly big.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

14 lines
297 B

  1. import { JoinKilo } from '../../common'
  2. const joinKilo: JoinKilo = (kiloCount, kiloName) =>
  3. kiloName
  4. ? [
  5. kiloCount,
  6. ' ',
  7. kiloName.slice(0, 1).toUpperCase(), // capitalize kilo name
  8. kiloName.slice(1),
  9. ].join('')
  10. : kiloCount
  11. export default joinKilo