Init
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user