Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 307 Bytes

isValidCep.md

File metadata and controls

17 lines (10 loc) · 307 Bytes

isValidCep

Validates if the inputed CEP is valid, considering the Brazilian format.

Arguments

  • cep: string: value to be validated

Usage

import { isValidCep } from '@platformbuilders/validations';

isValidCep('01424000'); // return false

isValidCep('01424-000'); // return true