Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Linux
Desktop
one year ago
Test name Executions per second
_has 2508909.8 Ops/sec
hasOwnProperty.bind 3142497.2 Ops/sec
Script Preparation code:
AخA
 
var person = {name: 'Frederick', lastName: 'Corcino Alejo'};
Tests:
  • _has

     
    _.has(person, 'name');
  • hasOwnProperty.bind

     
    Object.hasOwnProperty.bind(person)('name')