rest-param:返回一个附加了 rest 参数的函数

时间:2021-06-11 18:32:53
【文件属性】:
文件名称:rest-param:返回一个附加了 rest 参数的函数
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-11 18:32:53
JavaScript 休息参数 返回一个附加了 rest 参数的函数 安装 $ npm install --save rest-param 用法 var restParam = require ( 'rest-param' ) ; restParam ( function ( a , b , rest ) { console . log ( a ) ; // 1 console . log ( b ) ; // 2 console . log ( rest ) ; // [3, 4] } ) ( 1 , 2 , 3 , 4 ) ; 应用程序接口 休息参数(fn) fn 必需的类型: function 执照 麻省理工学院 :copyright:
【文件预览】:
rest-param-master
----.jshintrc(170B)
----.gitignore(13B)
----package.json(647B)
----.travis.yml(61B)
----index.js(426B)
----test.js(1KB)
----license(1KB)
----readme.md(886B)
----.gitattributes(12B)
----.editorconfig(231B)

网友评论