I am working on an application using RequireJS AMD loading method.

I have my modules dynamical picked up from a configuration file into an array

```
var amd_modules = ["module1", "module2","module3"]

```

now I have my requireJS code

```
require(amd_modules, function(result) {
console.log("All modules loaded");
}

```

Now, the result variable shows the first module which is "module1". How can I get other modules also into variable inside the function() parenthesis.

For eg, 

```
require(amd_modules, function(module1, module2, module3) { //
}

```

I can't write the above hardcoding because the number of dynamic variables are not known until run time. Do let me know how I can catch the objects dynamically inside the function.

Thx