ParentFull threadteechap·I think the only way .indexOf could be faster than linear is if the array is sorted...View on HN