Skip to content

Commit acd5394

Browse files
authored
Merge pull request #24 from github/fix-every-calls
Fix `every` calls to return values
2 parents aab34b0 + 2526eb0 commit acd5394

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/index.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,11 @@ export const polyfills = {
7070
}
7171

7272
export function isSupported() {
73-
return (
74-
baseSupport &&
75-
Object.values(polyfills).every(polyfill => {
76-
polyfill.isSupported()
77-
})
78-
)
73+
return baseSupport && Object.values(polyfills).every(polyfill => polyfill.isSupported())
7974
}
8075

8176
export function isPolyfilled() {
82-
return Object.values(polyfills).every(polyfill => {
83-
polyfill.isPolyfilled()
84-
})
77+
return Object.values(polyfills).every(polyfill => polyfill.isPolyfilled())
8578
}
8679

8780
export function apply() {

0 commit comments

Comments
 (0)