MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / debounce

Function debounce

renderer.js:13862–13873  ·  view source on GitHub ↗
(func, wait)

Source from the content-addressed store, hash-verified

13860 models = models.filter(model => !model.printed);
13861 }
13862 if (newStatus === 'new') {
13863 models = models.filter(model => isModelNew(model));
13864 } else if (newStatus === 'not-new') {
13865 models = models.filter(model => !isModelNew(model));
13866 }
13867 if (favoriteStatus === 'favorited') {
13868 models = models.filter(model => Boolean(model.favorite));
13869 } else if (favoriteStatus === 'not-favorited') {
13870 models = models.filter(model => !model.favorite);
13871 }
13872 if (ratingStatus === 'unrated') {
13873 models = models.filter(model => normalizeModelRatingValue(model.rating) === 0);
13874 } else if (ratingStatus !== 'all' && /^[1-5]$/.test(ratingStatus)) {
13875 const exact = parseInt(ratingStatus, 10);
13876 models = models.filter(model => normalizeModelRatingValue(model.rating) === exact);

Callers 4

showModelDetailsFunction · 0.85
renderer.jsFile · 0.85
initializeMetadataSearchFunction · 0.85
showMultiEditPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected