Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Windows
Desktop
2 years ago
Test name Executions per second
_has 4893153.5 Ops/sec
hasOwnProperty.bind 5814079.0 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')