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

Method _setProperty

packages/helpers/classes/mail.js:612–623  ·  view source on GitHub ↗

* Set a property with normal undefined and type-checks

(propertyName, value, propertyType)

Source from the content-addressed store, hash-verified

610 * Set a property with normal undefined and type-checks
611 */
612 _setProperty(propertyName, value, propertyType) {
613 let propertyChecksPassed = this._checkProperty(
614 propertyName,
615 value,
616 [this._checkUndefined, this._createTypeCheck(propertyType)]);
617
618 if (propertyChecksPassed) {
619 this[propertyName] = value;
620 }
621
622 return propertyChecksPassed;
623 }
624
625 /**
626 * Fail if the value is undefined.

Callers 8

setSubjectMethod · 0.95
setTemplateIdMethod · 0.95
setBatchIdMethod · 0.95
setIpPoolNameMethod · 0.95
setSubstitutionsMethod · 0.95
setHeadersMethod · 0.95
setSectionsMethod · 0.95
setCustomArgsMethod · 0.95

Calls 2

_checkPropertyMethod · 0.95
_createTypeCheckMethod · 0.95

Tested by

no test coverage detected