UNPKG

@aller/blink

Version:

A library for tracking user behaviour.

13 lines (11 loc) 300 B
import { calculateEventTime } from '../utils/event-time'; export default function getInscreenTime(store: any, id: string, now: Date) { if (!store.inscreen[id]) { return 0; } return calculateEventTime({ times: store.inscreen[id], screenEvents: store.screen.events, now, }); }