I have a simple object with some simple arrays. I want to loop through each item in the object and check part of the array. For example, if a '0' or a '1' then do something.
var formvalidation = {
title: ['id1', 0],
categories: ['id2', 1],
price: ['id3', 1],
video: ['id4', 0],
fileTypes: ['id5', 0]
}
I've tried the following but I get the entire object in each loop.
jQuery(formvalidation).each(function(){
//Gives the entire object.
console.log();
});