@vladkrutenyuk/three-kvy-core
Version:
Everything you need to create any-complexity 3D apps with Three.js. Empower Three.js with a modular, lifecycle-managed context that seamlessly propagates through objects via reusable features providing structured logic.
10 lines (9 loc) • 418 B
TypeScript
/**
* Removes the first occurrence of a specified item from an array.
*
* @template T - The type of elements in the array.
* @param {T[]} array - The array from which to remove the item.
* @param {T} item - The item to remove from the array.
* @returns {boolean} - Returns `true` if the item was found and removed, otherwise `false`.
*/
export declare function removeArrayItem<T>(array: T[], item: T): boolean;