From 1d612fecc3f462ae2b75ed1d8283f53c15edfcc8 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Fri, 24 May 2019 10:19:25 +0300 Subject: [PATCH] Update allEqual.md Resolve #964 --- snippets/allEqual.md | 1 + 1 file changed, 1 insertion(+) diff --git a/snippets/allEqual.md b/snippets/allEqual.md index ce192560f..0378f5e79 100644 --- a/snippets/allEqual.md +++ b/snippets/allEqual.md @@ -3,6 +3,7 @@ Check if all elements in an array are equal. Use `Array.prototype.every()` to check if all the elements of the array are the same as the first one. +Elements in the array are compared using the strict comparison operator, which does not account for `NaN` self-inequality. ```js const allEqual = arr => arr.every(val => val === arr[0]);