![javascript](https://habrastorage.org/r/w120/webt/59/cc/76/59cc7600c78a2239379574.jpeg)
JavaScript
- 28 ответов
- 0 вопросов
26
Вклад в тег
function parseMobile(mobile) {
let mob = String(mobile).replace(/[^0-9]/g, '')
if (mob.length === 10 && mob.substr(0, 3) === '033')
mob = '777' + mob.substr(1)
return mob
}
50 * round(X / 50)