UNPKG

cnp-decoder

Version:

A function that decodes a romanian CNP and returns a object containing informations about the person it belongs to

6 lines (5 loc) 242 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkIfResident = void 0; const checkIfResident = cnp => cnp.split('')[0] == '7' || cnp.split('')[0] == '8'; exports.checkIfResident = checkIfResident;