sct-snapshot-rest-api
sct-snapshot-rest-api copied to clipboard
snomed.js
In Script snomed.js, on the line 103:
if (rel.active == true && (rel.type.conceptId == 116680003 || rel.type.conceptId == "116680003")) {
why repeats rel.type.conceptId==116680003?
Hi @3mlifamily,
You are right that in JavaScript is it not necessary to make type safe comparisons.
2 + 3 == 5
equals true.
2 + 3 == "5"
also equals true.
This could be fixed as a minor code improvement.