Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 299 Bytes

isValidCnpj.md

File metadata and controls

17 lines (10 loc) · 299 Bytes

isValidCnpj

Validates if the value is a valid CNPJ.

Arguments

  • value: string: value to be validated

Usage

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

isValidCnpj('00.257.681/0001-50'); // return false

isValidCnpj('29.257.681/0001-50'); // return true