在数组 arr 中,查找值与 item 相等的元素出现的所有位置
示例1
输入
'abcdefabc'
输出
[0, 6]
加载中...
function findAllOccurrences(arr, target) { }