Used map() method to build users array in findUsersByIds function.