We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ded4c8 commit 9d64976Copy full SHA for 9d64976
lib/utils.js
@@ -63,8 +63,11 @@ export const autobind = (self = {}) => {
63
];
64
65
const filter = (key) => {
66
+ const keyString = typeof key === 'string' ? key : String(key);
67
const match = (pattern) =>
- typeof pattern === "string" ? key === pattern : pattern.test(key);
68
+ typeof pattern === "string"
69
+ ? keyString === pattern
70
+ : pattern.test(keyString);
71
if (exclude) {
72
return !exclude.some(match);
73
}
0 commit comments