I have a prototype class - within the class I call a function and within this function I am able to enumerate . If any element fails in an investigation within this trend, then I call again another function which later calls this function again. Can I break within this repetition, not only the walk is finished, but nothing is said within the function.
Tell me this code, I do not want console.log to be elm.something == 'whatever ' is obviously I can set a variable and after its function its Can I check for it but is there anything else I should do?
my function: function (el) {el.each (function) (if (elm.something == 'joe') {this.someOtherFunction (elm);}}, it ); Console.log ("I do not want elm.something == 'whatever' ');} To be clear, in this case console.log is just a placeholder code for the beginning of some additional logic that is executed after this loop
The simplest way would be to avoid using each () and instead would have to rewrite using a loop instead:
myFunction: function (l) {for var i in El) {var elm = el [i]; if (elm some == 'Whatever') {return it to some other function (elm);}} Console.log ("I do not want elm.something == 'whatever' '); }
Comments
Post a Comment