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

Method setCc

packages/helpers/classes/personalization.js:136–144  ·  view source on GitHub ↗

* Set cc

(cc)

Source from the content-addressed store, hash-verified

134 * Set cc
135 */
136 setCc(cc) {
137 if (typeof cc === 'undefined') {
138 return;
139 }
140 if (!Array.isArray(cc)) {
141 cc = [cc];
142 }
143 this.cc = EmailAddress.create(cc);
144 }
145
146 /**
147 * Add a single cc

Callers 3

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

Calls 1

createMethod · 0.45

Tested by

no test coverage detected