param { number [ ] } nums return { number } function FindMinInRotateArray ( nums ) { let left = 0 ; let right = nums . length - 1 ; while ( left < right ) { let mid = Math . floor ( left + ( right - left ) / 2 ) ; if ( nums [ right ] < nums [ mid ] ) { left = mid + 1 ; } else { right = mid ; } } return nums [ left ] ; } export { FindMinInRotateArray } ;