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

Method _doArrayCheck

packages/helpers/classes/mail.js:668–673  ·  view source on GitHub ↗

* Check that a value isn't undefined and is an array.

(propertyName, value)

Source from the content-addressed store, hash-verified

666 * Check that a value isn't undefined and is an array.
667 */
668 _doArrayCheck(propertyName, value) {
669 return this._checkProperty(
670 propertyName,
671 value,
672 [this._checkUndefined, this._createCheckThatThrows(Array.isArray, 'Array expected for`' + propertyName + '`')]);
673 }
674
675 /**
676 * Set the replyToList from email body

Callers 5

setPersonalizationsMethod · 0.95
setContentMethod · 0.95
setAttachmentsMethod · 0.95
_setArrayPropertyMethod · 0.95
setReplyToListMethod · 0.95

Calls 2

_checkPropertyMethod · 0.95

Tested by

no test coverage detected