UNPKG

vue-persian-calendar

Version:
7 lines (6 loc) 195 B
String.prototype.toPersianDigits = function () { const id = ['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹'] return this.replace(/[0-9]/g, function (w) { return id[+w] }) }