BLOODTYPE-VALIDATOR
Confirms Value is a Valid Bloodtype
Installation
npm install bloodtype-validator
Simple Validation
'a' // returns true 'a' { // is_valid === true};
Strict Validation
In addition to being a valid bloodtype, genotype indicator (+/-) must be included.
'a' 'strict' // returns false 'a+' 'strict' // returns true 'a' 'strict' { // is_valid === false}; 'a+' 'strict' { // is_valid === true};