UNPKG
peseljs
Version:
latest (1.2.1)
1.2.1
1.2.0
1.1.2
1.1.0
0.3.0
0.1.1
0.1.0
Library to validation PESEL
github.com/jaroslawkrol/peseljs
jaroslawkrol/peseljs
peseljs
/
lib
/
constants
/
length.const.ts
15 lines
(12 loc)
•
297 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// @dynamic
export
class
LengthConst
{
private
static
readonly
values
: {[
key
:
string
]:
number
} = {
PESEL
:
11
,
NIP
:
10
,
REGON_OLD
:
9
,
REGON_NEW
:
14
};
public
static
getFor
(
type
:
string
):
number
{
return
this
.
values
[
type
]; } }