Created
May 22, 2015 19:10
-
-
Save panuhorsmalahti/13e9910a09a329ef6dd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require("lodash"); | |
var performRoles = require("./performRoles.js"); | |
performRoles({ foo: 1 }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": "*" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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