MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / arrayRemove

Method arrayRemove

mini_program/common/Tools.js:304–310  ·  view source on GitHub ↗

* 数组删除指定的元素,并返回元素的索引值 * @param {Array} array * @param {String} value * @return {Number}

(array, value)

Source from the content-addressed store, hash-verified

302 * @return {Number}
303 */
304 arrayRemove(array, value) {
305 let index = array.indexOf(value)
306 if (index >= 0) {
307 array.splice(index, 1)
308 }
309 return index
310 }
311
312 /**
313 * 日期增加分钟

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected