Hello. I'm not really sure why this method returns array of numbers instead of concrete age ? I was looking at example from this post . In line 115 there's additional verification if year are within allowed range so at the end as a result we can get concrete birthdate.
https://github.com/mikaello/norwegian-national-id-validator/blob/d03063ab125dd46dc46e25b944f741a27e8971b4/src/index.js#L20
Hello. I'm not really sure why this method returns array of numbers instead of concrete age ? I was looking at example from this post . In line 115 there's additional verification if year are within allowed range so at the end as a result we can get concrete birthdate.
Regards