Closed Technical-13 closed 3 years ago
I can find 11 usages of instanceof Array
in src/extensions/message.js
. Only 3 are fixed. Did you left the other usages untouched for a reason?
I searched for instanceof Array
in the search bar and did all the ones that I saw come up. I'd be happy to do the rest, just didn't find them in the search.
There is absolutely no reason to do this in node. The situations that cause instanceof to be an issue are not applicable to node.
Replace the usage of
instanceof Array
andinstanceof Set
withArray.isArray()
and.toString() == "[object Set]"
respectively in the whole codebase.