示例

[10,21,0,-7,35,7,9,23,18] 输出 5, 7 最小

function getIndex(arr){
      let index=null;

      return index;
}

实现