MCPcopy
hub / github.com/validatorjs/validator.js / checkAddressCode

Function checkAddressCode

src/lib/isIdentityCard.js:273–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271 const parityBit = ['1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2'];
272
273 const checkAddressCode = addressCode => includes(provincesAndCities, addressCode);
274
275 const checkBirthDayCode = (birDayCode) => {
276 const yyyy = parseInt(birDayCode.substring(0, 4), 10);

Callers 2

check15IdCardNoFunction · 0.85
check18IdCardNoFunction · 0.85

Calls 1

includesFunction · 0.50

Tested by

no test coverage detected