Code Monkey home page Code Monkey logo

utility's Introduction

js-icon
Javascript Utils (Helpers)

  • retry —> Re-run a callback funciton using Promises with try count and delay time.
  • 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.
  • shortenNumber —> Returns value in compacted format (e.g. 1M, 4K).
  • debounce —> Native JS debounce function (prevents muliple clicks on an element).
  • sanitizeInput —> Validate inputs for injections.
  • 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.
  • checkJson —> Checks whether a string is JSON or not.
  • checkPrimitive —> Checks whether a variable is primitive (data that is not an object and has no methods) or not.
  • castTimeMsg —> Eeasy way to form the date messages like 10 days ago or yesterday and etc.
  • generateUrl —> Generate URLs with query params. (nice and easy)
  • addLeadingZero —> Add zero at the begining of a number (eg. countdown)

utility's People

Contributors

jamal-rahimzadegan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

utility's Issues

storage service

hi . tnx for your efforts . I couldn't find storageService in your repository . I wanted to know if it exists or not

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.