teodorsandu, 7 months ago @arda hasOwnProperty is right there with typeof, 'in' and double negation, its complexity must be O(1) as well. So yes, it definitely wins over anything that spends time creating and iterating over arrays.
@arda hasOwnProperty is right there with typeof, 'in' and double negation, its complexity must be O(1) as well. So yes, it definitely wins over anything that spends time creating and iterating over arrays.