find-in-files
find-in-files copied to clipboard
Return format is not an object
The return value is not an Object but it's an Array
Thus it is impossible to loop on results with a "for of" loop.
You can use Object.keys()
, to get the keys and iterate that way. But yes this problem is a stupid one.
In the github repo it IS an object https://github.com/kaesetoast/find-in-files/blob/4dea664eb6c9849d6eaf80977f72644f551f2d20/index.js#L70 but in the version published in npm , it is (still) an array. @kaesetoast , kindly publish your last version to npm, please, thanks in advance.