dojo 学习日记 之 数组操作

dojo 对Javascript1.6 的数组操作功能进行了拓展:

Method Summary

  • clearCache()
  • every(arr, callback, thisObject) Determines whether or not every item in arr satisfies the condition implemented by callback.
  • filter(arr, callback, thisObject) Returns a new Array with those items from arr that match the condition implemented by callback.
  • forEach(arr, callback, thisObject) for every item in arr, callback is invoked.
  • indexOf(arr, value, fromIndex, findLast) locates the first index of the provided value in the passed array.
  • lastIndexOf(arr, value, fromIndex) locates the last index of the provided value in the passed array.
  • map(arr, callback, thisObject, Ctr) applies callback to each element of arr and returns an Array with the results
  • some(arr, callback, thisObject) Determines whether or not any item in arr satisfies the condition implemented by callback.

 


posted @ 2013-11-02 23:57  Luan Louis  阅读(61)  评论(0)    收藏  举报