You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letwordsArray=converter.toWords(9007199254740992,true);letret1=`There are over ${wordsArray[0]} available.`;// There are over nine quadrillion available.
or
letwordsArray=converter.toWords(1992,true);letlast=wordsArray.pop()letret='There are '+wordsArray.join(' ')+' and '+last;// There are one thousand nine hundred and ninety-two
The text was updated successfully, but these errors were encountered:
Would be great to have the option to get the words as an array so that we can construct our own joining rules easily. E.g.:
Returns:
Then we can do things like:
or
The text was updated successfully, but these errors were encountered: