{"id":18896707,"url":"https://github.com/yosephdev/advanced-javascript-methods-demo","last_synced_at":"2026-02-28T14:30:22.104Z","repository":{"id":228727740,"uuid":"774748599","full_name":"yosephdev/advanced-javascript-methods-demo","owner":"yosephdev","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-20T10:01:51.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-31T08:15:20.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yosephdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-20T05:31:12.000Z","updated_at":"2024-03-20T07:30:08.000Z","dependencies_parsed_at":"2024-11-08T08:36:52.087Z","dependency_job_id":null,"html_url":"https://github.com/yosephdev/advanced-javascript-methods-demo","commit_stats":null,"previous_names":["yosephdev/advanced-javascript-methods-demo"],"tags_count":0,"template":false,"template_full_name":"Code-Institute-Org/ci-advanced-js-arrow-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosephdev%2Fadvanced-javascript-methods-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosephdev%2Fadvanced-javascript-methods-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosephdev%2Fadvanced-javascript-methods-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosephdev%2Fadvanced-javascript-methods-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yosephdev","download_url":"https://codeload.github.com/yosephdev/advanced-javascript-methods-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239876981,"owners_count":19711987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T08:35:09.330Z","updated_at":"2026-02-28T14:30:21.990Z","avatar_url":"https://github.com/yosephdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advanced JavaScript Methods Demo\n\nWelcome to the Advanced JavaScript Methods Demo repository!\n\nIn this repository, you'll find examples and explanations of three essential methods in JavaScript: `map()`, `filter()`, and `reduce()`. These methods are frequently used by advanced JavaScript developers for various data manipulation tasks.\n\n## Table of Contents\n\n1. [Introduction](#introduction)\n2. [Map Method](#map-method)\n3. [Filter Method](#filter-method)\n4. [Reduce Method](#reduce-method)\n5. [Running the Examples](#running-the-examples)\n\n## Introduction\n\nJavaScript provides powerful array methods like `map()`, `filter()`, and `reduce()` that allow developers to perform complex operations on arrays efficiently. Understanding how to use these methods is essential for writing clean, concise, and maintainable code.\n\n## Map Method\n\nThe `map()` method creates a new array by applying a function to each element of the original array. It's commonly used for transforming array elements.\n\nExample:\n```javascript\nconst numbers = [1, 2, 3, 4, 5];\nconst doubledNumbers = numbers.map(num =\u003e num * 2);\nconsole.log(doubledNumbers); // Output: [2, 4, 6, 8, 10]\n```\n\n## Filter Method\n\nThe filter() method creates a new array with all elements that pass the test implemented by the provided function. It's useful for selecting elements based on specific criteria.\n\nExample:\n```javascript\nconst numbers = [1, 2, 3, 4, 5];\nconst evenNumbers = numbers.filter(num =\u003e num % 2 === 0);\nconsole.log(evenNumbers); // Output: [2, 4]\n```\n\n## Reduce Method\n\nThe reduce() method executes a reducer function on each element of the array, resulting in a single output value. It's often used for aggregating data or performing calculations on arrays.\n\nExample:\n```javascript\nconst numbers = [1, 2, 3, 4, 5];\nconst sum = numbers.reduce((accumulator, currentValue) =\u003e accumulator + currentValue, 0);\nconsole.log(sum); // Output: 15\n```\n## Running the Examples\n\nTo run the examples provided in this repository, follow these steps:\n\n1. Clone this repository to your local machine using Git.\n2. Open a terminal or command prompt and navigate to the cloned directory.\n3. Run the example scripts using Node.js.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosephdev%2Fadvanced-javascript-methods-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyosephdev%2Fadvanced-javascript-methods-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosephdev%2Fadvanced-javascript-methods-demo/lists"}