Using of this method assumes that you have an array of THREE.Vector3(), that you pass in the first parameter.
If you have .index property in your geometry, it means that your geometry is a buffer geometry, whose positions stored in a typed array in a buffer attribute. Which is a set of float numbers, not of THREE.Vector3().
Thus, from my point of view, trying to use that method, you just make things complicated for no reason.