Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Iterating an Object

avoidwork edited this page Dec 31, 2012 · 1 revision

Iterating an Object can be done with $.iterate(), or abaaso.iterate(). When iterating, this will be the Object. Iteration can be halted by returning false.

var obj = {id: "Something", name: "Some One", country: "Somewhere"};

$.iterate(obj, function(value, key) {
	$.log(key + ": " + value);
});