News for hackers. Stuff that matters.
Re:How to chain multiple functions in JavaScript properly wi... by stevula on Friday August 16, 2019 @04:35PM (#20719454)
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: "[email protected]"
  };

  fields.to  // "[email protected]

There are no comments on this comment yet.