We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45748db commit 4f0ef94Copy full SHA for 4f0ef94
README.md
@@ -862,3 +862,24 @@ const newState = state.map((obj) =>
862
863
864
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