
Thank you for watching/reading folks, if you found this informative and wanted to make me more content like this please support me on Patreon. Here one thing is notable is if we get a very first wrong match from that point further execution will be terminate and the result will be returned with a false value. while in case of the second result it’ll compare every record with 0th index record (5) where it’s equal to all record so the output is given as true. Const result = allEqual() // output: trueĪs the first result shows, on 0th index record (3) won’t match to the first index record and it’ll return false from then only.
