Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function getFirstCollision
import { getFirstCollision } from "https://deno.land/x/netzo@0.3.66/deps/@dnd-kit/core.ts";

Returns the first collision, or null if there isn't one. If a property is specified, returns the specified property of the first collision.

Parameters

collisions: Collision[] | null | undefined

Type Parameters

T extends keyof Collision

Parameters

collisions: Collision[] | null | undefined
property: T