function throttle( fn, time, context = null ){
			const func = fn.bind( context );
			let timeout = -1;
			return rename( function( ...args ) {
				clearTimeout( timeout );
				timeout = setTimeout( () => {
					func( ...args );
				}, time );
			}, fn.name );
		}
/**
		 * Delayes the execution of a function. You call it with the normal arguments you would. If you don't wait until the timout expires, this also works as a debounce method.
		 * @param {Function} fn The function to throttle.
		 * @param {number} time The delay to execute the function after.
		 * @param {Object} [context=null] What context to execute under.
		 * @returns {Function} The throttled function.
		 * @memberof XtraUtils.Function.
		 */
Delayes the execution of a function. You call it with the normal arguments you would. If you don't wait until the timout expires, this also works as a debounce method.
@param {Function} fn The function to throttle.
@param {number} time The delay to execute the function after.
@param {Object} [context=null] What context to execute under.
@returns {Function} The throttled function.
Delayes the execution of a function . You call it with the normal arguments you would . If you don ' t wait until the timout expires this also works as a debounce method . @param { Function } fn The function to throttle . @param { number } time The delay to execute the function after . @param { Object } [ context = null ] What context to execute under . @returns { Function } The throttled function .
function throttle( fn, time, context = null ){
			const func = fn.bind( context );
			let timeout = -1;
			return rename( function( ...args ) {
				clearTimeout( timeout );
				timeout = setTimeout( () => {
					func( ...args );
				}, time );
			}, fn.name );
		}
function throttle ( fn , time , context = null ) { const func = fn . bind ( context ) ; let timeout = - 1 ; return rename ( function ( ... args ) { clearTimeout ( timeout ) ; timeout = setTimeout ( ( ) => { func ( ... args ) ; } , time ) ; } , fn . name ) ; }
Delayes the execution of a function.
Delayes the execution of a function .