Skip to content

Latest commit

 

History

History
27 lines (25 loc) · 1.38 KB

README.md

File metadata and controls

27 lines (25 loc) · 1.38 KB

js-icon
Javascript Utils (Helpers)

  • AxiosService —> Advanced configuration of axios to DRY your api calls.
  • simple-axios-module.js —> Simpler configuration of axios to have cleaner api calls.
  • runBeforeEachMethod—> Happy helper to execute a callback on every class method.
  • handleSwipe —> Returns a promise with the direction of the swipe.
  • socialFormatter —> Returns value in format of social medias (e.g. 1m 100K).
  • debounce —> Native JS debounce function (prevents muliple clicks on an element).
  • validateInput —> Validate inputs for XSS attacks.
  • handleSwipe —> detect the swiper directinon and doing some staff on user swipe.
  • openCaller —> Easily work with callers (mail, phone and etc).
  • generateError —> Reusable function to throwing errors and more.
  • generateArr —> Fastly create arrays.
  • toPersian —> Converts any string number (even in innerHtml) to persian number.
  • toEnglish —> Converts any string number (even in innerHtml) to english number.
  • scrollToElement —> Scrolls to specific element.
  • checkEmptyObject —> Checks if an object has proptery or not.
  • LS —> Small helper for localStorage (with nice methods).