{"size": 659, "ext": "js", "max_stars_repo_path": "dwec/tema4constructores/js/Array.js", "max_stars_repo_name": "JosemaGonzalez/Proyectos", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dwec/tema4constructores/js/Array.js", "max_issues_repo_name": "JosemaGonzalez/Proyectos", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dwec/tema4constructores/js/Array.js", "max_forks_repo_name": "JosemaGonzalez/Proyectos", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.9545454545, "max_line_length": 64, "alphanum_fraction": 0.5493171472}
let init = function() {
    let array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
    let mostrar = function(argu) {
        let content = document.getElementById("contenido");
        content.innerHTML += argu + "<br>";
    }
    let borrarDuplicados = function(argu) {
        let array2 = [];
        array2 = argu.filter(
            function(registros, posicion) {
                return argu.indexOf(registros) == posicion;
            }
        );
        return array2;
    }
    mostrar("Mi array: " + array)
    array.push(4);
    mostrar("Añadir al final: " + array);
    mostrar("Array sin duplicados: " + borrarDuplicados(array));
}
window.onload = init;
