export class EventHelpers { public static throttleEventHandler (fn, threshold, parameters, context) { let last; return () => { var now = Date.now(); if (!last || now > last + threshold) { last = now; fn.apply(context, parameters); } }; } }