Question d’entretien chez Darwinbox

how will you detect a loop in json object in Javascript