Ee18e

e18e/@e18e/object.hasown

No description available

Legacy
e18emodule-replacement
Public
2 downloads
0 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

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

Ready to contribute?

Build your own codemod and share it with the community.