Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4f0ef94

Browse files
authored
pay attention when using every
1 parent45748db commit4f0ef94

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

‎README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,3 +862,24 @@ const newState = state.map((obj) =>
862862
863863
864864
865+
**[⬆ Back to Top](#table-of-contents)**
866+
### pay attention when using every
867+
868+
Calling this method on an empty array will return true for any condition!
869+
870+
871+
```javascript
872+
873+
const arr = []
874+
const result = arr.every(x=> x==5)
875+
console.log(result) //true
876+
877+
```
878+
879+
880+
881+
882+
883+
884+
885+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp