ordinal-suffix-of
Use:
import { ordinalSuffixOf } from 'ordinal-suffix-of';
let a = 123;
console.log(a + ordinalSuffixOf(a))
Notes:
ordinalSuffixOf
expects aNumber
.- Any type other than
Number
will throw an Error.
import { ordinalSuffixOf } from 'ordinal-suffix-of';
let a = 123;
console.log(a + ordinalSuffixOf(a))
ordinalSuffixOf
expects a Number
.Number
will throw an Error.npm i ordinal-suffix-of
4
1.0.1
ISC
1.33 kB
3