Today a question came to my mind. I’ve been wondering, out of hasOwnProperty and typeof, which one is the fastest? And to what extent? So I thought I would share the results of my small benchmark here. I used the excellent BenchmarkJS module with a simple benchmark suite as follows :