Object.hasOwn Codemod
Introduction
This codemod replaces instances of object.hasown with the built-in Object.hasOwn method. This not only reduces dependencies by removing unnecessary imports but also leverages modern JavaScript features for better performance and simpler code.
Before
javascript
After
javascript