{"size": 324, "ext": "js", "max_stars_repo_path": "UsingObjects/02. RemoveElements/Scripts.js", "max_stars_repo_name": "juvemar/JavaScript-Fundamentals", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "UsingObjects/02. RemoveElements/Scripts.js", "max_issues_repo_name": "juvemar/JavaScript-Fundamentals", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "UsingObjects/02. RemoveElements/Scripts.js", "max_forks_repo_name": "juvemar/JavaScript-Fundamentals", "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": 21.6, "max_line_length": 54, "alphanum_fraction": 0.5030864198}
Array.prototype.remove = function (element) {
    var i;
    for (i = 0; i < this.length; i += 1) {
        if (this[i] === element) {
            this.splice(i, 1);
        }
    }
};

var arr = [1, 2, 1, 4, 1, 3, 4, 1, 111, 3, 2, 1, '1'];
console.log(arr);
arr.remove(1);
console.log(arr);
arr.remove(3);
console.log(arr);