JSFiddle - React, Tailwind, and code Playground
by dipaks2011
HTML
<div id="Run"></div>
<div id="Save"></div>
<div id="Reset"></div>
JavaScript
//ARRAYS
var arr = [ "one", "two", "three", "four", "five" ];
jQuery.each(arr, function(index, value) {
console.log(this);
return (this != "three"); // will stop running after "three"
});
//outputs: one two three
//OBJECTS
var obj = { one:1, two:2, three:3, four:4, five:5 };
jQuery.each(obj, function(i, val) {
//console.log(i);
console.log(val);
});
//outputs: 1 2 3 4 5