isPoint
Returns true
if the provided value has an x
and y
property.
Import
import { isPoint } from '@popmotion/popcorn';
Usage
isPoint(0); // false
isPoint({ x: 0, y: 0 }); // true
Types
isPoint(v: any): boolean;
isPoint
Returns true
if the provided value has an x
and y
property.
import { isPoint } from '@popmotion/popcorn';
isPoint(0); // false
isPoint({ x: 0, y: 0 }); // true
isPoint(v: any): boolean;