☰
Debian Codegraph
@
8.0.6+ds1+~cs177.303.116-1
8.0.4+ds1+~cs177.303.116-3
7.20.15+ds1+~cs214.269.168-17
/
/
packages
/
babel-plugin-proposal-pipeline-operator
/
test
/
fixtures
/
minimal
/
async-arrow
/
exec.js
☽
☼
packages/babel-plugin-proposal-pipeline-operator/test/fixtures/minimal/async-arrow/exec.js
code
plain
raw
symbols
SCIP
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
function
then
(fn) {
2
return
async
(value) => {
3
return
fn
(
await
value);
4
};
5
}
6
7
var
result =
1
8
|> (
async
(x) =>
await
x +
1
)
9
|>
then
((x) => x +
1
);
10
11
return
result.
then
(val => {
12
expect
(val).
toBe
(
3
);
13
});