projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve(?) Monochrome + simplify Zen variant
[vchess.git]
/
client
/
src
/
utils
/
array.js
diff --git
a/client/src/utils/array.js
b/client/src/utils/array.js
index
4d44db0
..
d02552c
100644
(file)
--- a/
client/src/utils/array.js
+++ b/
client/src/utils/array.js
@@
-4,7
+4,7
@@
export const ArrayFun = {
const index = arr.findIndex(rfun);
if (index >= 0) {
arr.splice(index, 1);
- if (all) {
+ if (
!!
all) {
// Reverse loop because of the splice below
for (let i = arr.length - 1; i >= index; i--) {
if (rfun(arr[i])) arr.splice(i, 1);