dict
Script
v2
Fork
1
2
3
4
5
6
7
8
9
import
{
fetch
}
from
"https://esm.town/v/std/fetch"
;
export
let
dict
=
async
(
word
:
string
)
=>
{
const
req
=
await
fetch
(
`https://api.dictionaryapi.dev/api/v2/entries/en/
${
word
}
`
)
;
const
res
=
await
req
.
json
(
)
;
return
res
;
}
;