Question: How can we know that which type of linker(static/dynamic) our system is using?

Is it decided on type of library(static/dynamic) we have used or is there any other thing?

Answer: 
You have to write a nested loop to find that,

```
var keys = Object.keys(answers);
var dupe = false;

for(var i=0;i<keys.length;i++){
 for(var j=i+1;j<keys.length;j++){
   if(answers[keys[i]] === answers[keys[j]]){
     dupe = true;
     break;
   }
 }
 if(dupe){ console.log("dupe value is there.."); break; }
}

```

[DEMO](https://jsfiddle.net/u47px6e0/1/)
----------------------------------------
I guess you mean duplicate values and not duplicate key/value pairs. This is how I'd do it:

```
function findDuplicateValues(input) {
    var values = {},
        key;

    for (key in input) {
        if (input.hasOwnProperty(key)) {
            values[input[key]] = values.hasOwnProperty(input[key]) ? values[input[key]] + 1 : 1;
        }
    }

    for (key in values) {
        if (values.hasOwnProperty(key) && values[key] > 1) {
            console.log('duplicate values found');
            break;
        }
    }
}

```

For large objects it will be quicker than the previous answer, because there are no nested loops (this will execute in linear O(n) time rather than quadratic O(n2) time).