@vect/renamer
Rename a function
Features
- Rename a function
Install
$ npm install @ject/rename
Usage
import { rename } from '@ject/rename'
const func = x => x
console.log(func.name) // func
rename(func, 'not-a-method')
console.log(func.name) // not-a-method