:newspaper: A collection of JavaScript functions useful for making prose reader friendly.
apmonthtab
and apdatetab
. These two are identical to apmonth
and apdate
except months are output in AP's tabular format instead. Instead of Sept.
you get Sep
, etc.ordinal
has been extracted and made into its own method called ordinalsuffix
. This makes it possible to access the correct suffix for a number without modifying the original value. Great for if you'd like to style the number and suffix differently, or just want to output them separately. Credit to @sawyerclick for the suggestion in #283!toString()
in functions that short circuit to guarantee it returns the correct type.__tests__
directory so we stop shipping them in the npm bundle