Git Product home page Git Product logo

helpers's Introduction

Helpers


This fun collection of JS files, provides some tooling that i use with alot of projects.

** 21.9.2020 - while some of these are no longer needed, it is still nice to have this as an archive of old practices.

Some documentation for the most frequently used:
guid.js
    class - Guid
        method - newGuid(): generates a lowercase random guid.
example:

Guid.newGuid()

result:"9619d99e-ac91-874d-06d2-2512ab68a465"

        method - isGuid(str): returns bool, checks whehter input string is a guid.

namespace.js
        method - namespace(name, seperator, container): generates a hierarchy of objects to the by the desired string.
example:

namespace("solution.project").SomeClass = function () { }

will create an object under the following tree: solution.project.SomeClass

stringPrototype.js
    class - String
        method - format(): acts like c++'s format function.
example:

            "{0} World {1}".format("Hello",":)");

result: "Hello World :)"

        method - camelize(): replaces first letter to uppercase and lowers the rest. example: ``` "hello".camelize(); ``` result: "Hello";

        method - stripAllAfter(str): Cuts of a string after a specific character/word.

        method - contains(str): Checks whether an input string is contained in the string, one or more times.

        method - hashCode(): generates a number identifier coressponding to the string.

helpers's People

Contributors

bambihaber avatar

Watchers

 avatar

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.