1.0.0 • Published 2 years ago

qcurry v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Function are

函数作用

A custom number of parameters can be defined by the Coriolization function 一个可以自定义参数个数的柯里化函数

Using the example

使用例子

   let qcurry= require('qcurry')

    let c = qcurry(4,function(){
           console.log(arguments)
      })
      c(1,2,3)(4);// 1,2,3,4

You can also initialize parameters

你也可以初始化参数

   let qcurry= require('qcurry')

    let c = qcurry(4,function(){
           console.log(arguments)
      },[1,2])
      c(3)(4);// 1,2,3,4

参数说明

parameter description

一、定义执行该函数需要的参数个数
1、 Specifies the Number of parameters required to execute this function

Type:Number

二、定义要执行的函数 2、 Define the function to execute

Type:Function

三、初始化要保存的参数数组 3、 Initialize the array of parameters to save

Type:Array

四、执行时参数是否倒置
4、 Whether to invert the parameters during execution

Type:boolean

Of course, you can also get the source code and put it into your own JS file ヾ( ̄▽ ̄)Bye~Bye~

当然,你也可以拿到的源代码,把它放进自己的JS文件ヾ( ̄▽ ̄)再见~再见~

1.0.0

2 years ago