Lines Matching refs:data
15 this.data = [1, 2, 3, 4, 5];
19 delete this.data;
23 var data = ['a', 'a', null, 'c', 'c', 'd'];
25 Assert.areSame(1, A.lastIndexOf(data, 'a'));
26 Assert.areSame(2, A.lastIndexOf(data, null));
27 Assert.areSame(-1, A.lastIndexOf(data, false));
28 Assert.areSame(4, A.lastIndexOf(data, 'c'));
29 Assert.areSame(5, A.lastIndexOf(data, 'd'));
30 Assert.areSame(-1, A.lastIndexOf(data, 'x'));
35 var data = ['a', 'a', null, 'c', 'c', 'd'];
37 Assert.areSame(1, A.lastIndexOf(data, 'a', 20));
38 Assert.areSame(1, A.lastIndexOf(data, 'a', -3));
39 Assert.areSame(-1, A.lastIndexOf(data, 'c', -4));
40 Assert.areSame(3, A.lastIndexOf(data, 'c', -3));
41 Assert.areSame(-1, A.lastIndexOf(data, 'a', -10));
55 var data = this.data;
56 var results = A.map(data, function (item, i, array) {
59 Assert.areSame(data, array);
67 var data = this.data;
68 var results = A.map(data, function(item) {
90 Assert.areSame(15, A.reduce(this.data, 0, function (sum, item, i, array) {
104 var data = this.data;
105 var result = A.reduce(data, 0, function (sum, item) {
125 var data = this.data;
126 var result = A.find(data, function (item) {
133 var data = this.data;
134 var result = A.find(data, function (item) {
141 var data = this.data;
142 var result = A.find(data, function(item) {
149 var data = this.data;
150 var result = A.find(data, function(item) {
170 var data = this.data,
172 result = A.filter(data, function (item, i, array) {
175 Assert.areSame(data, array);
184 A.filter(data, function () {
190 var data = this.data;
191 var result = A.filter(data, function (item) {
212 var data = this.data;
213 var result = A.reject(data, function (item) {
221 var data = this.data;
222 var result = A.reject(data, function (item) {
226 ArrayAssert.itemsAreEqual(data, result);
230 var data = ['ruby', 'perl', 'python'];
231 var results = A.grep(data, /p(erl|ython)/);
237 var data = ['ruby', 'perl', 'python'];
238 var results = A.grep(data, /j(ruby|ython)/);
244 var data = this.data;
245 var results = A.partition(data, function (item) {
265 var data = [5, 10, 20, 540];
266 var result = A.every(data, function(item, i, a) {
274 var data = [5, 10, 20, 541];
275 var result = A.every(data, function(item, i, a) {