A small utility to get the prefixed vendor function if needed.
If you wan to get more information about vendor prefixes, look up MDN Web Docs.
npm install @jstiller/praefix
import praefix from "praefix"
const requestAnimationFrameFunction = praefix("requestAnimationFrame", window);
it's equal to the following
const requestAnimationFrameFunction = window.requestAnimationFrame
|| window.mozRequestAnimationFrame
|| window.webkitRequestAnimationFrame
|| window.oRequestAnimationFrame
|| window.msRequestAnimationFrame;