Y
Hacker News
new
|
ask
|
show
|
jobs
by
stevula
2503 days ago
I haven't read the article, but there's no special significant to the `to` here. It is just looking up the value of a key named `to` in an object called `fields`, using [dot notation](
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
):
const fields = { to: "foo@bar.com" }; fields.to // "foo@bar.com