• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

javascript-object-snippets

JavaScript Object Snippets for Atom editor.
JonathanBergson
0.3.0 3,351
3
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

atom-javascript-object-snippet

[literal] 'var literal = {}':

var ${1:literal} = {
    $2
}

[attr] 'attr: value':

${1:attr} : ${2:value},

[method] method : function() {}

${1:method} : function(${2:parameter}) {
    $3
},

[func] 'var func = function(e) {}':

var ${1:func} = function(${2:parameter}) {
    $3
}

[func2] 'function func(e) {}':

function ${1:func}(${2:parameter}) {
    $3
}

[new] 'new Object();':

var ${1:obj} = new ${2:Object}(${3:parameter});

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by