MCPcopy Index your code
hub / github.com/sendgrid/sendgrid-nodejs / setTo

Method setTo

packages/helpers/classes/personalization.js:103–111  ·  view source on GitHub ↗

* Set to

(to)

Source from the content-addressed store, hash-verified

101 * Set to
102 */
103 setTo(to) {
104 if (typeof to === 'undefined') {
105 return;
106 }
107 if (!Array.isArray(to)) {
108 to = [to];
109 }
110 this.to = EmailAddress.create(to);
111 }
112
113 /**
114 * Set from

Callers 3

fromDataMethod · 0.95
set-to.spec.jsFile · 0.80
to-json.spec.jsFile · 0.80

Calls 1

createMethod · 0.45

Tested by

no test coverage detected