What I proposed is just like,
```js
// I suppose the key should have compositeKey if it also has upperCompositeKey
// correct me if I'm wrong.

if (key.compositeKey) {
  var compositeKeyValue = flags.uppercase ? key.upperCompositeKey : key.compositeKey;
  dataset.push({'key': 'compositeKey', 'value': compositeKeyValue});
}
```