* 判断数组中是否含有指定元素 * @param {Array} arr * @param {Objext} obj * @return {Array}
(arr, obj)
| 292 | * @return {Array} |
| 293 | */ |
| 294 | includes(arr, obj) { |
| 295 | return Array.prototype.indexOf.call(arr, obj) != -1 |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * 数组删除指定的元素,并返回元素的索引值 |
nothing calls this directly
no outgoing calls
no test coverage detected