Skip to content

Instantly share code, notes, and snippets.

Hosein BehkamaL hoseinBL

Block or report user

Report or block hoseinBL

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AliMD
AliMD / fix-persian-number.js
Last active Feb 17, 2018
Convert/Fix persian and arabic numbers inside a string to english in javascript, AliMD Edition ;)
View fix-persian-number.js
(() => {
'use strict';
const
// Establish the root object, `window` (`self`) in the browser, `global`
// on the server, or `this` in some virtual machines. We use `self`
// instead of `window` for `WebWorker` support.
root = (() => {
if (typeof self == 'object' && self.self === self) return self;
else if (typeof global == 'object' && global.global === global) return global;
You can’t perform that action at this time.