import * as _ from "lodash" ; export function throttle ( milliseconds = 500 ) { return function ( target , propertyKey , descriptor ) { const original = descriptor . value ; descriptor . value = _ . throttle ( original , milliseconds ) ; return descriptor ; } ; }