I am trying this:
return {
configs: app.config
}
But it does not seem to work. Is there another way to return an anonymous object with the one field "configs" ?
function someFunc() {
var retVal = {
configs: app.config
};
return retVal;
}
Here is another idea:
var someFunc2 = function() {
var app = {};
app.config = 1;
return { configs: app.config };
};
someFunc2();
// Object {configs: 1}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With