UNPKG
@interaction/eagle
Version:
latest (0.0.7)
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
JavaScript library
github.com/Iecy/eagle
Iecy/eagle
@interaction/eagle
/
es
/
internal
/
_curry1.js
10 lines
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
_isPlaceholder
from
"./_isPlaceholder.js"
;
export
default
function
_curry1
(
fn
) {
return
function
f1
(
a
) {
if
(
arguments
.
length
===
0
||
_isPlaceholder
(a)) {
return
f1; }
else
{
return
fn.
apply
(
this
,
arguments
); } }; }