fn-args:获取函数,箭头函数,生成器函数,异步函数的参数

时间:2021-05-26 07:57:04
【文件属性】:
文件名称:fn-args:获取函数,箭头函数,生成器函数,异步函数的参数
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-26 07:57:04
JavaScript fn-args 获取函数,箭头函数,生成器函数,异步函数的参数 安装 $ npm install fn-args 用法 const functionArguments = require ( 'fn-args' ) ; functionArguments ( function ( foo , bar ) { } ) ; //=> ['foo', 'bar'] functionArguments ( ( foo , bar ) => { } ) ; //=> ['foo', 'bar'] functionArguments ( function * ( foo , bar ) { } ) ; //=> ['foo', 'bar'] functionArguments ( async function ( foo , bar ) { } ) ; //=> ['foo', 'bar'] 执
【文件预览】:
fn-args-main
----index.test-d.ts(460B)
----.gitattributes(19B)
----.github()
--------workflows()
----test.js(3KB)
----license(1KB)
----index.d.ts(531B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(2KB)
----readme.md(530B)
----test-newer.js(722B)
----package.json(832B)

网友评论