Open Eomm opened 1 year ago
comparePrototypes
is only supposed to work for equal()
/ equals()
.
You should be able to workaround this by checking each array element yourself using equal()
.
Would you mind accepting a PR to support it with arrays too?
Support plan
Context
@hapi/lab@25.1.2
What are you trying to achieve or the steps to reproduce?
The module does not ignore the prototype during a comparison.
** By using simple objects
{}
the comparison works as expected.What was the result you got?
What result did you expect?
No error due to the default
comparePrototypes = false
setting