argtor
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

argtor

Extracts destructured argument names from a function.

npm i argtor pnpm add argtor yarn add argtor

API

# argtor(fn, keys)

    # fn

      Fn & {

      # fn

        Fn

      }

# keys  =  ...

    Set<T>

argtor<T>(fn, keys)  =>

    T [] & {

    # source  =  args.source

      string

    }

Credits

Contributing

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas

Readme

Keywords

none

Package Sidebar

Install

npm i argtor

Weekly Downloads

92

Version

3.0.0

License

MIT

Unpacked Size

22.1 kB

Total Files

18

Last publish

Collaborators

  • stagas