You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function BiggerElements(val)
|
|
{
|
|
return function(evalue, index, array)
|
|
{
|
|
return (evalue >= val);
|
|
};
|
|
}
|
|
var result = [11, 45, 4, 31, 64, 10]. filter(BiggerElements(10));
|
|
console.log(result);
|