The function of money that illustrates this is, “Measure of worth”.
Because we can measure and compare the value of goods and services with money and it is the common standard to measure the values. Money is performing a function as medium of exchange when money is used as a midway to exchange the goods and services.