Method to list unique values of a property through obsidian api

Hi there,

I am using Templater and its javascript capability to make a template that asks me via tp.system.suggester for the input of a multi text property.

At the moment I have an array of items for the suggestions, but I was wondering if obsidian has an internal method or object that stores all unique values of each property that would be accessible through the obsidian api.

I think this is the case because obsidian already suggests used values for multi text properties.

Many thanks for your help!