Calculate Aspect Ratio
This site uses the
calculate-aspect-ratio NPM module
that calculates the aspect ratio with the provided
import calculateAspectRatio from 'calculate-aspect-ratio';
const aspectRatio = calculateAspectRatio(1920, 1080); // '16:9'
$ aspectratio 1920 1080
Aspect ratio: 16:9