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;