fix(wavl): use correct array method in isCorrect

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2022-05-06 09:43:32 +02:00
parent cb736602f8
commit 7217588536
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -5,7 +5,7 @@ class WAVLTree extends AVLTree {
}
nodeDifferences(node).forEach((childRank) => {
if ([1, 2].findIndex(childRank) == -1) {
if ([1, 2].indexOf(childRank) == -1) {
return false;
}
});