@deboxsoft/module-core
Advanced tools
Comparing version 1.7.0-4 to 1.7.0-5
@@ -272,6 +272,6 @@ 'use strict'; | ||
function debounce(func, wait = 150, immediate = false) { | ||
var timeout; | ||
let timeout; | ||
return function() { | ||
var context = this, args = arguments; | ||
clearTimeout(timeout); | ||
const context = this, args = arguments; | ||
timeout && clearTimeout(timeout); | ||
timeout = setTimeout(function() { | ||
@@ -278,0 +278,0 @@ timeout = null; |
@@ -245,6 +245,6 @@ import * as changeCase from 'change-case'; | ||
function debounce(func, wait = 150, immediate = false) { | ||
var timeout; | ||
let timeout; | ||
return function() { | ||
var context = this, args = arguments; | ||
clearTimeout(timeout); | ||
const context = this, args = arguments; | ||
timeout && clearTimeout(timeout); | ||
timeout = setTimeout(function() { | ||
@@ -251,0 +251,0 @@ timeout = null; |
{ | ||
"name": "@deboxsoft/module-core", | ||
"version": "1.7.0-4", | ||
"version": "1.7.0-5", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
@@ -20,2 +20,2 @@ /** | ||
*/ | ||
export declare const clamp: (number: number, boundOne: number, boundTwo?: number) => number; | ||
export declare const clamp: (number: number, boundOne: number, boundTwo?: number | undefined) => number; |
@@ -12,2 +12,2 @@ /** | ||
*/ | ||
export declare function isString(value: any): boolean; | ||
export declare function isString(value: any): any; |
44278