MCPcopy
hub / github.com/mozilla/web-ext / throwUsageErrorIfArray

Function throwUsageErrorIfArray

src/program.js:372–379  ·  view source on GitHub ↗
(errorMessage)

Source from the content-addressed store, hash-verified

370}
371
372export function throwUsageErrorIfArray(errorMessage) {
373 return (value) => {
374 if (Array.isArray(value)) {
375 throw new UsageError(errorMessage);
376 }
377 return value;
378 };
379}
380
381export async function main(
382 absolutePackageDir,

Callers 2

test.program.jsFile · 0.90
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…