How to get key1 by using uniquevalue1 from the following object? If that's possible, how to get key by othervalues in 'an array'?
{ 'key1': { anarray: ['othervalues '], value: 'uniquevalue1' }, 'key2': { value: 'uniquevalue2', anarray: ['othervalues '] } }