An open API service indexing awesome lists of open source software.

https://github.com/natichan/filter-odd-elements

Ejercicio de array filter odd elements
https://github.com/natichan/filter-odd-elements

Last synced: 2 months ago
JSON representation

Ejercicio de array filter odd elements

Awesome Lists containing this project

README

        

# Escriba una función llamada "filterOddElements".

Dado un array de números,"filterOddElements" devuelve un array que contiene sólo los números impares del array dado.

Ejemplo:

var output = filterOddElements([1, 2, 3, 4, 5]);
console.log(output); // --> [1, 3, 5]