From 29fdba4b4326d3094cdd76541307ac6a835c1a3d Mon Sep 17 00:00:00 2001 From: Manuel Puyol Date: Tue, 28 Jun 2022 12:59:43 -0500 Subject: [PATCH 1/2] Fix `every` calls to return values --- src/index.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 074645e..173fa91 100644 --- a/src/index.ts +++ b/src/index.ts @@ -72,16 +72,12 @@ export const polyfills = { export function isSupported() { return ( baseSupport && - Object.values(polyfills).every(polyfill => { - polyfill.isSupported() - }) + Object.values(polyfills).every(polyfill => polyfill.isSupported()) ) } export function isPolyfilled() { - return Object.values(polyfills).every(polyfill => { - polyfill.isPolyfilled() - }) + return Object.values(polyfills).every(polyfill => polyfill.isPolyfilled()) } export function apply() { From 2526eb085639ef8b288929d7f65325670c0fd069 Mon Sep 17 00:00:00 2001 From: Manuel Puyol Date: Tue, 28 Jun 2022 13:01:38 -0500 Subject: [PATCH 2/2] lint --- src/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 173fa91..3632807 100644 --- a/src/index.ts +++ b/src/index.ts @@ -70,10 +70,7 @@ export const polyfills = { } export function isSupported() { - return ( - baseSupport && - Object.values(polyfills).every(polyfill => polyfill.isSupported()) - ) + return baseSupport && Object.values(polyfills).every(polyfill => polyfill.isSupported()) } export function isPolyfilled() {