Validators

isValidPhone.mjs

@mr_ozio/scraper-utils · v2.5.0 · Generated April 21, 2026

Target Style

Target Style

1 exports

const

isValidPhone

Target Style
export const isValidPhone = (phone) => {

Checks whether a value looks like a valid Russian phone number.

Accepts either:

  • 10 digits without a country prefix
  • 11 digits starting with 7 or 8

Obvious repeated fake numbers are rejected as well.

Target style API. Preferred for new code.

Parameters

  • phonenumber | string | null | undefined

Returns

boolean

Legacy Style

Legacy Style

0 exports

No legacy exports in this module.