@kingjs/reflect.descriptor.rename
v1.0.0
Published
Renames functions found in a descriptor.
Downloads
4
Readme
@kingjs/reflect.descriptor.rename
Renames functions found in a descriptor.
API
rename(this, template)
Parameters
this
: The descriptor whose functions will be renamed.template
: The name to assign to each function. A placeholder forname
will be expanded to the name of the function being replaced.
Returns
Returns the descriptor with its functions renamed.
Install
With npm installed, run
$ npm install @kingjs/reflect.descriptor.rename
Dependencies
|Package|Version|
|---|---|
|@kingjs/function-ex.rename
|^1.0.0
|
|@kingjs/is
|^1.0.9
|
|@kingjs/string-ex.expand
|^1.0.0
|
Source
https://repository.kingjs.net/reflect/descriptor/rename
License
MIT