Is there anything like shoot the pointer function from phaser 2?

Is looking a function similar to phaser 2 shoot the pointer


I just need the sprite to rotate and follow mouse pointer but i couldnt find anything in the phaser 3 examples
cheers

See the BetweenPoints() calculation in physics/arcade/velocity from angle.