Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D digitec-wiki
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Digitec
  • digitec-wiki
  • Wiki
  • javascript coding standards

javascript coding standards · Changes

Page history
rcabral deleted page: backspace contact information authored Mar 29, 2016 by Rene Cabral's avatar Rene Cabral
Hide whitespace changes
Inline Side-by-side
javascript-coding-standards.markdown
View page @ a97d3391
...@@ -147,31 +147,31 @@ When a function is to be invoked immediately, the entire invocation expression s ...@@ -147,31 +147,31 @@ When a function is to be invoked immediately, the entire invocation expression s
```javascript ```javascript
var collection = (function () { var collection = (function () {
    var keys = [], values = []; var keys = [], values = [];
    return { return {
        get: function (key) { get: function (key) {
            var at = keys.indexOf(key); var at = keys.indexOf(key);
            if (at >= 0) { if (at >= 0) {
                return values[at]; return values[at];
            } }
        }, },
        set: function (key, value) { set: function (key, value) {
            var at = keys.indexOf(key); var at = keys.indexOf(key);
            if (at < 0) { if (at < 0) {
                at = keys.length; at = keys.length;
            } }
            keys[at] = key; keys[at] = key;
            values[at] = value; values[at] = value;
        }, },
        remove: function (key) { remove: function (key) {
            var at = keys.indexOf(key); var at = keys.indexOf(key);
            if (at >= 0) { if (at >= 0) {
                keys.splice(at, 1); keys.splice(at, 1);
                values.splice(at, 1); values.splice(at, 1);
            } }
        } }
    }; };
}()); }());
``` ```
......
Clone repository
  • alpha beta testing
  • browser testing
  • camtasia licenses
  • code delivery processes
  • coding practices
  • css and sass coding standards
  • database schema standards
  • dependency management
  • development environments
  • digitec agile process
  • digitec gitlab styles
  • digitec software promises
  • digitec spec process
  • gitlab administration
  • gitlab issues tags
View All Pages