Sign in
chromium
/
devtools
/
devtools-frontend
/
1a9ca99fd0b2c0ec7bdeff3ced49c413002ffbb0
/
.
/
node_modules
/
rambda
/
src
/
bind.js
blob: 16d1d019f58e91f6fcc4c57a8643af5878152265 [
file
]
import
{
curryN
}
from
'./curryN.js'
export
function
bind
(
fn
,
thisObj
){
if
(
arguments
.
length
===
1
){
return
_thisObj
=>
bind
(
fn
,
_thisObj
)
}
return
curryN
(
fn
.
length
,
(...
args
)
=>
fn
.
apply
(
thisObj
,
args
))
}