Created
January 31, 2019 02:32
-
-
Save tomhodgins/0ee1517d1cf943eb0c29bbf41b001d83 to your computer and use it in GitHub Desktop.
Add every(), filter(), find(), findIndex(), forEach(), includes(), indexOf(), lastIndexOf(), map(), and some() to StyleSheetList objects and CSSRuleList objects
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
[ | |
'every', | |
'filter', | |
'find', | |
'findIndex', | |
'forEach', | |
'includes', | |
'indexOf', | |
'lastIndexOf', | |
'map', | |
'some' | |
].forEach(method => | |
StyleSheetList.prototype[method] | |
= CSSRuleList.prototype[method] | |
= Array.prototype[method] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment