Skip to content

Instantly share code, notes, and snippets.

@panuhorsmalahti
Created May 22, 2015 19:10
Show Gist options
  • Save panuhorsmalahti/13e9910a09a329ef6dd2 to your computer and use it in GitHub Desktop.
Save panuhorsmalahti/13e9910a09a329ef6dd2 to your computer and use it in GitHub Desktop.
var _ = require("lodash");
var performRoles = require("./performRoles.js");
performRoles({ foo: 1 });
{
"name": "module-name",
"version": "10.3.1",
"description": "An example module to illustrate the usage of a package.json",
"author": "Your Name <[email protected]>",
"contributors": [{
"name": "Foo Bar",
"email": "[email protected]"
}],
"main": "lib/foo.js",
"dependencies": {
"lodash": "*"
}
}
module.exports = function(creeps){
//console.log(Object.keys(creeps));
_.forEach(creeps,function(i,creep){
console.log(i, creep);
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment