How to loop in Protractor config file?
<p>I am new to JS and Protractor for testing functionalities. I need to include some conditions or loops inside 'Configuration' file of protractor. 
Such as, if I need to check my specs running on 'Windows / Mac' platform and a variable provides these details.</p>

<p>I am expecting something like :</p>

<pre><code>exports.config = {
    seleniumAddress : 'http://localhost:4444/wd/hub',
    getPageTimeout : 30000,
    allScriptsTimeout : 30000,
    specs : [  ],
    framework : 'jasmine2',

    ***don't know the syntax, am expecting below line and condition need to work for protractor***
    ***var platform = 'Windows',
    if(platform ==='Windows'){***
    multiCapabilities: [{
        'browserName': 'chrome',
        'specs': ['spec1.js']
      },
      ***else {***
        'browserName': 'chrome',
        'specs': ['spec2.js']
      }],
};
</code></pre>

<p>Is it possible to validate in Configuration file?</p>