MCPcopy Create free account
hub / github.com/ReactiveX/rxjs / parseInput

Function parseInput

apps/rxjs.dev/scripts/test-pwa-score.js:75–87  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

73}
74
75function parseInput(args) {
76 const url = args[0];
77 const minScore = Number(args[1]);
78 const logFile = args[2];
79
80 if (!url) {
81 onError('Invalid arguments: <URL> not specified.');
82 } else if (isNaN(minScore)) {
83 onError('Invalid arguments: <MIN_SCORE> not specified or not a number.');
84 }
85
86 return {url, minScore, logFile};
87}
88
89function processResults(results, logFile) {
90 let promise = Promise.resolve();

Callers 1

_mainFunction · 0.85

Calls 1

onErrorFunction · 0.85

Tested by

no test coverage detected