UNPKG

framer-motion

Version:

An open source and production-ready motion library for React on the web

9 lines (7 loc) • 236 B
import { MutableRefObject } from "react" export function isRefObject<E = any>(ref: any): ref is MutableRefObject<E> { return ( typeof ref === "object" && Object.prototype.hasOwnProperty.call(ref, "current") ) }