MCPcopy Create free account
hub / github.com/SparkPost/node-sparkpost / addressToString

Function addressToString

lib/transmissions.js:146–156  ·  view source on GitHub ↗
(address)

Source from the content-addressed store, hash-verified

144}
145
146function addressToString(address) {
147 if (_.isPlainObject(address)) {
148 if (_.has(address, 'name')) {
149 address = `"${address.name}" <${address.email}>`;
150 } else {
151 address = address.email;
152 }
153 }
154
155 return address;
156}
157
158function addressToObject(address) {
159 let addressObject = address;

Callers 2

generateCCHeaderFunction · 0.85
generateHeaderToFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected