MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / checkFormat

Method checkFormat

contributed/modClock/main.js:373–379  ·  view source on GitHub ↗
(formats, f)

Source from the content-addressed store, hash-verified

371
372// checkFormat looks for "f" within formats. If not found, treat f as an index
373 checkFormat(formats, f) {
374 if (formats.includes(f))
375 return f;
376 let i = parseInt(f);
377 i = (i >= formats.length) ? formats.length : i;
378 return formats[i];
379 }
380
381 checkPass(newPass, oldPass) {
382 if ((undefined !== newPass) && (newPass.length > 7) && (oldPass != newPass))

Callers 1

configServerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected