add initial marp implementation with sample content and build configuration
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import { NUMBERS as NUMB } from '../messages.js';
|
||||
function numberToWords(num) {
|
||||
const digits = num.toString().split('');
|
||||
return digits
|
||||
.map(function (digit) {
|
||||
return NUMBERS.ones[parseInt(digit, 10)];
|
||||
})
|
||||
.join('');
|
||||
}
|
||||
export const NUMBERS = NUMB({
|
||||
numberToWords: numberToWords,
|
||||
numberToOrdinal: numberToWords
|
||||
});
|
||||
Reference in New Issue
Block a user