Codemod: is-primitive
Introduction
This codemod replaces the usage of the is-primitive npm module with a custom implementation of the isPrimitive function. This change aims to reduce unnecessary dependencies and improve the performance of the codebase by utilizing a built-in approach to validate primitive values.
Before
javascript
After
javascript