MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / toArray

Function toArray

src/lib/util.js:359–367  ·  view source on GitHub ↗
(param)

Source from the content-addressed store, hash-verified

357 * @return {Array}
358 */
359export function toArray(param) {
360 if (!param) {
361 return [];
362 }
363 if (!Array.isArray(param)) {
364 return [param];
365 }
366 return param;
367}
368
369/**
370 * Validate an url

Callers 6

getKeyByAddressFunction · 0.90
getKeyringWithPrivKeyFunction · 0.90
syncPublicKeysFunction · 0.90
getKeyByAddressMethod · 0.90
getArmoredKeysMethod · 0.90
getPrivateKeyByIdsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected