Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/@dnd-kit/core.ts>getFirstCollision

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function getFirstCollision
import { getFirstCollision } from "https://deno.land/x/netzo@0.4.72/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