Last active
May 14, 2019 13:14
-
-
Save beygi/e0c38acee82277e28b663b8eef0a2a91 to your computer and use it in GitHub Desktop.
Revisions
-
beygi revised this gist
May 14, 2019 . No changes.There are no files selected for viewing
-
beygi revised this gist
May 14, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ c=(s)=>s.replace(/\d/g,x=>"۰۱۲۳۴۵۶۷۸۹".split("")[x]); ``` **Usage:** ``` console.log(c("2003/08/12")); //۲۰۰۳/۰۸/۱۲ -
beygi revised this gist
May 14, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,5 +6,5 @@ c=(s)=>s.replace(/\d/g,x=>"۰۱۲۳۴۵۶۷۸۹".split("")[x]); **usage:** ``` console.log(c("2003/08/12")); //۲۰۰۳/۰۸/۱۲ ``` -
beygi revised this gist
May 14, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ **Definition** ``` c=(s)=>s.replace(/\d/g,x=>"۰۱۲۳۴۵۶۷۸۹".split("")[x]); ``` **usage:** ``` console.log(c("2003/12/12")); -
beygi created this gist
May 14, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ defining ``` c=(s)=>s.replace(/\d/g,x=>"۰۱۲۳۴۵۶۷۸۹".split("")[x]); ``` usage: ``` console.log(c("2003/12/12")); ```