1.0.0 • Published 5 years ago

@kingjs/reflect.descriptor.rename v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

@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 for name 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

PackageVersion
@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

Analytics