Helper package for keep most generic utils in one small package. No framework markup.
npm install @msalek/utilsHelper package for keep most generic utils in one small package.
No framework markup.
ts
debounce,
useDebounce,
handlePromiseWithTimeout,
freezeThreadAndWait,
getDateNowInString,
isProductionEnv,
randomIntFromNumbersRange,
only2DigitsFloat,
isNotDefined,
setNewURLImmediately,
getURLParameters,
getQueryStringWithoutLastMergeChar,
getURLWithoutSearch,
asyncScrollToTop,
getCapitalizedString,
ValueOf,
OptionalExceptFor,
areObjectsEqualShallow,
addSearchParamToQueryString,
getSearchParams,
removeSearchParamFromQueryString,
addAndReplaceStateByWindowHistory,
removeAndReplaceStateByWindowHistory,
removeDuplicates,
interactionFunctionCall
`For full documentation go to the declaration (.d.ts) files.
###### Development only: use
yarn b` command for generate build files with a declarations.###### Source code: GitHub