forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polyfill array includes manually for IE11 (mui#1117)
* Polyfill array includes manually for IE11 * Make proper implementation of arrayIncludes πββοΈ
- Loading branch information
1 parent
2aff556
commit d61f288
Showing
5 changed files
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
{ | ||
"build/dist/material-ui-pickers.esm.js": { | ||
"bundled": 91969, | ||
"minified": 52577, | ||
"gzipped": 14251, | ||
"bundled": 92431, | ||
"minified": 52547, | ||
"gzipped": 14144, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 42666, | ||
"code": 42634, | ||
"import_statements": 1355 | ||
}, | ||
"webpack": { | ||
"code": 49454 | ||
"code": 49461 | ||
} | ||
} | ||
}, | ||
"build/dist/material-ui-pickers.umd.js": { | ||
"bundled": 1107157, | ||
"minified": 353214, | ||
"gzipped": 98117 | ||
"bundled": 1108309, | ||
"minified": 352732, | ||
"gzipped": 98061 | ||
}, | ||
"build/dist/material-ui-pickers.umd.min.js": { | ||
"bundled": 858507, | ||
"minified": 298748, | ||
"gzipped": 84257 | ||
"bundled": 859298, | ||
"minified": 298250, | ||
"gzipped": 84185 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** Use it instead of .includes method for IE support */ | ||
export function arrayIncludes<T>(array: T[], item: T) { | ||
return array.indexOf(item) !== -1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters