Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const a = {
- BioInfos: [{BioType: "FACE"}],
- CurrentBioInfos: [{BioType: "FACE"}, {BioType: "INDEX_LEFT"}],
- }
- const FACE = "FACE"
- const sameArr = ["FACE"]
- const diffArr = ["INDEX_LEFT"]
- if(sameArr.includes(FACE) && sameArr.some(item => item !== FACE))
- //cập nhật sinh trắc FACE và FINGER
- else if(!sameArr.includes(FACE)){
- const haveFingerInSameArr = sameArr.some(item => item !== FACE)
- const haveFingerInDiffArr = diffArr.some(item => item!==FACE)
- if(haveFingerInSameArr && haveFingerInDiffArr)
- //cập nhật và đăng ký bổ sung vân tay
- else if (haveFingerInSameArr)
- // cập nhật vân tay
- else if (haveFingerInDiffArr)
- // đăng ký bổ sung vân tay
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement