import type { Ctor } from '../../types/class.types.js'; export const findInstanceOf = >( arr: any[], type: TOut, ): InstanceType | undefined => arr.find(el => el instanceof type) as any;