isPoint3D

Returns true if the provided value has an x, y and z properties.

Import

import { isPoint3D } from '@popmotion/popcorn';

Usage

isPoint3D(0); // false
isPoint3D({ x: 0, y: 0 }); // false
isPoint3D({ x: 0, y: 0, z: 0 }); // true

Types

isPoint3D(v: any): boolean;