(Not a question but something to help others.)
When you’re testing dataviewjs code and using console.log
make sure you’re looking at the developer tools console of the main window of Obsidian. If you’ve opened notes in a separate window and open that developer tools console you will not see the output of console.log
.