{"id":23015661,"url":"https://github.com/rodrigo-dev7/arraysjsuse","last_synced_at":"2025-04-02T17:45:00.543Z","repository":{"id":122426258,"uuid":"262898845","full_name":"Rodrigo-dev7/arraysJSuse","owner":"Rodrigo-dev7","description":"Algumas formas de se utilizar Array em javascript","archived":false,"fork":false,"pushed_at":"2020-05-11T00:14:29.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T08:32:47.401Z","etag":null,"topics":["arrays","filter","find","foreach","forof","javascript","map"],"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/Rodrigo-dev7.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":"2020-05-11T00:07:34.000Z","updated_at":"2020-05-11T00:16:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"93073b6b-97a6-49ff-9339-e850da94ab33","html_url":"https://github.com/Rodrigo-dev7/arraysJSuse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodrigo-dev7%2FarraysJSuse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodrigo-dev7%2FarraysJSuse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodrigo-dev7%2FarraysJSuse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rodrigo-dev7%2FarraysJSuse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rodrigo-dev7","download_url":"https://codeload.github.com/Rodrigo-dev7/arraysJSuse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246864096,"owners_count":20846374,"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":["arrays","filter","find","foreach","forof","javascript","map"],"created_at":"2024-12-15T11:12:49.672Z","updated_at":"2025-04-02T17:45:00.537Z","avatar_url":"https://github.com/Rodrigo-dev7.png","language":"JavaScript","readme":"# ALGUMAS FORMAS DE USAR ARRAYS NO JavaScript.\n\nVeja algumas formas de se utilizar.\n\n - Map\n``` \nconst celsius = [0, 23, 30, 41, 68, 14];\nconst toFahrneheit = value =\u003e ((value * 9) / 5) + 32;\nconst temperatureFahrneheit = celsius.map(toFahrneheit);\n\nconsole.log(celsius)\nconsole.log(temperatureFahrneheit)\n```\n\n- Filter\n```\nconst nums = [2, 4 , 76, 98, 121, 207, 404]\nconst par = nums.filter((value) =\u003e {\n  return value % 2 == 0\n})\n\nconsole.log(par) \n\n```\n\n- Find\n\n```\nconst sobremesas = [{\n    nome: 'pudim',\n    diet: true,\n  },\n  {\n    nome: 'gelatina',\n    diet: false,\n  },\n  {\n    nome: 'Bolo de chocolate',\n    diet: true,\n  },\n  {\n    nome: 'pavê',\n    diet: false,\n  },\n];\n\nconst inDiet = sobremesas.find(item =\u003e {\n  return item.diet\n})\n\nconsole.log(inDiet)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigo-dev7%2Farraysjsuse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigo-dev7%2Farraysjsuse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigo-dev7%2Farraysjsuse/lists"}