You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling unique with non string, number or symbol values, it doesn't handle it correctly when not using a toKey function.
This is caused by using an object as the key-value pair for the uniqueness check, as an object can only handle string, number or symbol as keys. Typescript would have caught this issue but it was bypassed using as any.
Using a Map would fix this as it can handle all values as keys.
The text was updated successfully, but these errors were encountered:
When calling unique with non string, number or symbol values, it doesn't handle it correctly when not using a toKey function.
This is caused by using an object as the key-value pair for the uniqueness check, as an object can only handle string, number or symbol as keys. Typescript would have caught this issue but it was bypassed using as any.
Using a Map would fix this as it can handle all values as keys.
The text was updated successfully, but these errors were encountered: