Gender

Gender~ Gender

new Gender(nationalIdentityCardNumberopt) → {boolean|undefined}

Description:
  • An object can be created by giving the National ID number or without any parameters. If the object is created by providing the National ID number, it is not mandatory to provide the ID number when using other methods. If the ID number is not provided, the ID number should be applied when using the methods.

Source:
Example
let gender = Gender("your national-identity-card number");
if(!gender){
     console.log("invalid national identity card number");
}else{
     console.log(gender.genderToStr());
}
//second example
let gender = Gender();
if(!gender.nicNumber("your national-identity-card number")){
     console.log("invalid national identity card number");
}else{
     console.log(gender.genderToStr());
}
Parameters:
Name Type Attributes Default Description
nationalIdentityCardNumber string <optional>
'undefined'
Returns:
Type
boolean | undefined