8 lines
172 B
JavaScript
8 lines
172 B
JavaScript
|
function isRefObject(ref) {
|
||
|
return (ref &&
|
||
|
typeof ref === "object" &&
|
||
|
Object.prototype.hasOwnProperty.call(ref, "current"));
|
||
|
}
|
||
|
|
||
|
export { isRefObject };
|