turkish-id-checker
Version:
A package which checks if a number or string is a valid Turkish ID or not and generates a random valid Turkish ID.
43 lines (38 loc) • 609 B
text/typescript
const strings: String[] = [
'15973515680',
'48434802890',
'89866475924',
'64676450200',
'15844521246',
'30222258880',
'34945632804',
'12730220580',
'63446795756',
'78254264738',
]
const numbers: Number[] = [
15973515680,
48434802890,
89866475924,
64676450200,
15844521246,
30222258880,
34945632804,
12730220580,
63446795756,
78254264738,
]
const unacceptedTypes: any[] = [
new Date(),
['15973515680'],
{ id: 15844521246 },
false,
null,
undefined,
]
const ExampleIdNumbers = {
strings,
numbers,
unacceptedTypes,
}
module.exports = ExampleIdNumbers