String.prototype.ordinalize >= 0.1.0

Purpose

Renders all found numbers their sequence

Syntax

String#ordinalize ( );

Parameters

Return values

String

Examples

'the 1 pitch'.ordinalize();
>>> "the 1st pitch"

'the 100 time'.ordinalize();
>>> "the 100th time"

Comments