From 59bc9b4ef511110cdb29b9f08df49f311053a48c Mon Sep 17 00:00:00 2001
From: Akash Negi <55234838+NegiAkash890@users.noreply.github.com>
Date: Tue, 2 Mar 2021 16:43:09 +0530
Subject: [PATCH 1/2] Update - some() method description .
---
.../javascript/reference/global_objects/array/some/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/files/en-us/web/javascript/reference/global_objects/array/some/index.html b/files/en-us/web/javascript/reference/global_objects/array/some/index.html
index 7382b14dbd64d24..b53e30ff9a27b3b 100644
--- a/files/en-us/web/javascript/reference/global_objects/array/some/index.html
+++ b/files/en-us/web/javascript/reference/global_objects/array/some/index.html
@@ -14,7 +14,7 @@
The some()
method tests whether
at least oneĀ element in the array passes the test implemented by the provided
- function. It returns a Boolean value.
+ function. This method returns true if it finds an array element that return true value for the test function , otherwise it returns false . This method doesn't modify the original array .
{{EmbedInteractiveExample("pages/js/array-some.html")}}
From 304c772d11f57e7875151d4348e669029571bf37 Mon Sep 17 00:00:00 2001
From: Akash Negi <55234838+NegiAkash890@users.noreply.github.com>
Date: Tue, 2 Mar 2021 19:03:51 +0530
Subject: [PATCH 2/2] Update - Array.some() description .
Co-authored-by: Michael[tm] Smith
---
.../javascript/reference/global_objects/array/some/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/files/en-us/web/javascript/reference/global_objects/array/some/index.html b/files/en-us/web/javascript/reference/global_objects/array/some/index.html
index b53e30ff9a27b3b..d6202fe141a04fa 100644
--- a/files/en-us/web/javascript/reference/global_objects/array/some/index.html
+++ b/files/en-us/web/javascript/reference/global_objects/array/some/index.html
@@ -14,7 +14,7 @@
The some()
method tests whether
at least oneĀ element in the array passes the test implemented by the provided
- function. This method returns true if it finds an array element that return true value for the test function , otherwise it returns false . This method doesn't modify the original array .
+ function. It returns true if, in the array, it finds an element for which the provided function returns true; otherwise it returns false. It doesn't modify the array.
{{EmbedInteractiveExample("pages/js/array-some.html")}}