This commit is contained in:
Dmytro Tkachenko
2024-10-12 02:08:44 +03:00
commit 680168f6de
34 changed files with 21951 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
const getConfidence = (media, breakpoint) => {
const best = Object.values(media)
.filter((med) => med.found)
.reduce((prev, current) => {
return prev.metric > current.metric ? prev : current;
});
return best.confidence;
};
export default getConfidence;