var makeIterator = require('../function/makeIterator_');
/**
* Array reject
*/
function reject(arr, callback, thisObj) {
callback = makeIterator(callback, thisObj);
var results = [];
if (arr == null) {
return results;
}
var i = -1, len = arr.length, value;
while (++i < len) {
value = arr[i];
if (!callback(value, i, arr)) {
results.push(value);
}
}
return results;
}
module.exports = reject;
# |
Change |
User |
Description |
Committed |
|
#1
|
23539 |
jenbottom |
Adding the basic code for ember test appk, created with 'ember new' command |
|
|