U could use return to end function execution.
More Related Contents:
- Solving TicTacToe with minimax algorithm in Javascript
- i am not getting dropdown with this code [duplicate]
- How to convert string to date object in javascript? [duplicate]
- Ways to circumvent the same-origin policy
- Self-references in object literals / initializers
- Display data streamed from a Flask view as it updates
- EmberJS: How to load multiple models on the same route?
- How to order events bound with jQuery
- What does % do in JavaScript?
- jQuery – multiple $(document).ready …?
- Stringify (convert to JSON) a JavaScript object with circular reference
- Viable options for running NodeJS on Android (Aug 2017)
- Is && statement() the same as if() statement()?
- Add content to a new open window
- How do you test for NaN in JavaScript?
- Tried to Load Angular More Than Once
- Use :hover to modify the css of another class?
- modify a css rule object with javascript [duplicate]
- How to convert milliseconds into a readable date?
- Writing a json object to a text file in javascript
- Why is my function being called twice in React?
- collapse and expand tabs jquery / simple accordion
- How to include local javascript on a Gatsby page?
- TypeScript TS7015: Element implicitly has an ‘any’ type because index expression is not of type ‘number’
- Can I use a Gulp task with multiple sources and multiple destinations?
- Array.push return pushed value?
- Changing data content on an Object Tag in HTML
- unable to load xml from external file using jQuery
- Push JSON Objects to array in localStorage
- Execution order of multiple setTimeout() functions with same interval