![]() ![]() The indexOf method searches through an array from lowest index to highest, and lastIndexOf searches from highest to lowest. Dojo provides two functions within the dojo/_base/array resource: indexOf and lastIndexOf. One operation you will need to use when working with arrays is finding an item within an array. ![]() The good news is that Dojo provides array helper methods along the lines of the new methods, so no matter what environment you're running in, you'll be able to easily work with arrays. Sadly, not all browsers and environments have adopted these new methods. The implementors of JavaScript knew this, and have added some methods on array instances to aid in working more easily with them. Getting StartedÄata access and manipulation is a very important aspect of development that you will encounter when building your web application. In this tutorial, you'll learn about Dojo's cross-platform solution for easily working with arrays in JavaScript: dojo/_base/array.
0 Comments
Leave a Reply. |