projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
'update'
[vchess.git]
/
client
/
src
/
utils
/
array.js
diff --git
a/client/src/utils/array.js
b/client/src/utils/array.js
index
d02552c
..
3d7f7ae
100644
(file)
--- a/
client/src/utils/array.js
+++ b/
client/src/utils/array.js
@@
-1,5
+1,6
@@
// Remove item(s) in array (if present)
export const ArrayFun = {
// Remove item(s) in array (if present)
export const ArrayFun = {
+
remove: function(arr, rfun, all) {
const index = arr.findIndex(rfun);
if (index >= 0) {
remove: function(arr, rfun, all) {
const index = arr.findIndex(rfun);
if (index >= 0) {
@@
-21,4
+22,5
@@
export const ArrayFun = {
range: function(max) {
return [...Array(max).keys()];
}
range: function(max) {
return [...Array(max).keys()];
}
+
};
};