Multiple dropdown

How to get the newest selected value of select2 multiple dropdown?

See https://select2.org/programmatic-control/retrieving-selections