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

Method includes

mini_program/common/Tools.js:294–296  ·  view source on GitHub ↗

* 判断数组中是否含有指定元素 * @param {Array} arr * @param {Objext} obj * @return {Array}

(arr, obj)

Source from the content-addressed store, hash-verified

292 * @return {Array}
293 */
294 includes(arr, obj) {
295 return Array.prototype.indexOf.call(arr, obj) != -1
296 }
297
298 /**
299 * 数组删除指定的元素,并返回元素的索引值

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected