by kwxza · 7y ago · 0 comments
let courseId = fields.to.substring(0, fields.to.indexOf('@'));
I've never seen this 'to' string method and I can't find a doc page for it. Can you explain it or point me towards a reference? Thanks
const fields = {
to: "foo@bar.com"
};
fields.to // "foo@bar.com