Open github-zhangwei opened 2 years ago
function getMinIndex(target) {
const min = Math.min(...target.filter(item => item > 0))
return target.findIndex(item => item === min) }
function getMinIndex(target) {
const min = Math.min(...target.filter(item => item > 0))
return target.findIndex(item => item === min) }