From 47cb043dd28b5066c0a6ac6e7765464d06b97e8b Mon Sep 17 00:00:00 2001 From: Andrew James Date: Thu, 8 Nov 2018 06:34:41 +0800 Subject: [PATCH] Clarified the definition for the `false` return (#22134) Updated to clarify 'false' is returned if "none" of the elements met the condition, instead of "any". Also edited the last sentence a little. --- guide/english/javascript/es6/some-function/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/english/javascript/es6/some-function/index.md b/guide/english/javascript/es6/some-function/index.md index 8dad4c9590..74e428420d 100644 --- a/guide/english/javascript/es6/some-function/index.md +++ b/guide/english/javascript/es6/some-function/index.md @@ -4,7 +4,7 @@ title: Some Function ## The Some Function -The `some()` function is used for verifying if at least one element of an array meets a given condition. The function returns `true` if the condition is met by one element, and false if any of the elements met the condition +The `some()` function is used for verifying if at least one element of an array meets a given condition. The function returns `true` if the condition is met by one element, and `false` if none of the elements met the condition. The original syntax of the some function is: ```javascript @@ -22,4 +22,4 @@ if (arr.some(el => el % 2 == 0)) { } ``` -`some()` is a method of the `Array` object, so to pass that function to an iterable object it is necessary to be sure that the object is an Array. +`some()` is a method of the `Array` object, so to pass the `some()` function to an iterable object it is necessary that the object is an Array.