ordinal-suffix-of
v1.0.1
Published
Feed in a number, get back the ordinal suffix of that number
Downloads
7
Readme
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.