projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
cad403846e9e107af33dcd8d3f4cdf4b040639e4
[platform/framework/web/crosswalk-tizen.git]
/
1
define(['../function/makeIterator_'], function(makeIterator) {
2
3
/**
4
* Array reject
5
*/
6
function reject(arr, callback, thisObj) {
7
callback = makeIterator(callback, thisObj);
8
var results = [];
9
if (arr == null) {
10
return results;
11
}
12
13
var i = -1, len = arr.length, value;
14
while (++i < len) {
15
value = arr[i];
16
if (!callback(value, i, arr)) {
17
results.push(value);
18
}
19
}
20
21
return results;
22
}
23
24
return reject;
25
});