Sign in
chromium
/
external
/
github.com
/
SeleniumHQ
/
selenium
/
refs/heads/api-docs-4.30.0-all
/
.
/
node_modules
/
rambda
/
src
/
curry.js
blob: 2c4cb49d02828ab2306ab0d6344a75756b60e4c4 [
file
] [
log
] [
blame
] [
edit
]
export
function
curry
(
fn
,
args
=
[]){
return
(...
_args
)
=>
(
rest
=>
rest
.
length
>=
fn
.
length
?
fn
(...
rest
)
:
curry
(
fn
,
rest
))([
...
args
,
...
_args
,
])
}