UNPKG
vimo-dt
Version:
latest (1.0.4)
1.0.4
1.0.2
1.0.1
0.10.0
A Vue2.x UI Project For Mobile & HyBrid
github.com/vm-component/vimo
vm-component/vimo
vimo-dt
/
lib
/
util
/
remove-array-item.js
11 lines
(9 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
= removeArrayItem;
function
removeArrayItem
(
array, item
) {
var
index = array.
indexOf
(item);
return
~index && array.
splice
(index,
1
); }