UNPKG
@arrows/dispatch
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.0
0.1.0
Functional dispatch library
caderek.github.io/arrows/packages/dispatch/
caderek/arrows
@arrows/dispatch
/
identity.js
9 lines
(8 loc)
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
/** * Identity function - returns the argument as-is. */
const
identity
= (
x
) => x;
exports
.
identity
= identity;
exports
.
default
= identity;