Sign in
chromium
/
devtools
/
devtools-frontend
/
refs/heads/main
/
.
/
node_modules
/
rambda
/
src
/
compose.js
blob: 98ef387dd29a55390431fdcc122de67d6686d59c [
file
] [
log
] [
blame
] [
edit
]
import
{
pipe
}
from
'./pipe.js'
export
function
compose
(){
if
(
arguments
.
length
===
0
){
throw
new
Error
(
'compose requires at least one argument'
)
}
return
pipe
.
apply
(
this
,
Array
.
prototype
.
slice
.
call
(
arguments
,
0
).
reverse
())
}