{"id":20780095,"url":"https://github.com/xotic750/array-reduce-right-x","last_synced_at":"2026-04-22T01:33:00.714Z","repository":{"id":23788821,"uuid":"99848510","full_name":"Xotic750/array-reduce-right-x","owner":"Xotic750","description":"Reduce an array (from right to left) to a single value.","archived":false,"fork":false,"pushed_at":"2023-01-04T22:40:25.000Z","size":2466,"stargazers_count":0,"open_issues_count":20,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T08:48:07.124Z","etag":null,"topics":["array","browser","javascript","nodejs","reduceright"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xotic750.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-09T20:08:28.000Z","updated_at":"2020-01-30T23:01:40.000Z","dependencies_parsed_at":"2023-01-13T23:52:37.706Z","dependency_job_id":null,"html_url":"https://github.com/Xotic750/array-reduce-right-x","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Farray-reduce-right-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Farray-reduce-right-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Farray-reduce-right-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Farray-reduce-right-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xotic750","download_url":"https://codeload.github.com/Xotic750/array-reduce-right-x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243123394,"owners_count":20240007,"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":["array","browser","javascript","nodejs","reduceright"],"created_at":"2024-11-17T13:32:11.085Z","updated_at":"2025-12-26T02:06:00.772Z","avatar_url":"https://github.com/Xotic750.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca\n  href=\"https://travis-ci.org/Xotic750/array-reduce-right-x\"\n  title=\"Travis status\"\u003e\n\u003cimg\n  src=\"https://travis-ci.org/Xotic750/array-reduce-right-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/array-reduce-right-x\"\n  title=\"Dependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/array-reduce-right-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/array-reduce-right-x?type=dev\"\n  title=\"devDependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/array-reduce-right-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://badge.fury.io/js/array-reduce-right-x\"\n  title=\"npm version\"\u003e\n\u003cimg src=\"https://badge.fury.io/js/array-reduce-right-x.svg\"\n  alt=\"npm version\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://www.jsdelivr.com/package/npm/array-reduce-right-x\"\n  title=\"jsDelivr hits\"\u003e\n\u003cimg src=\"https://data.jsdelivr.com/v1/package/npm/array-reduce-right-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://bettercodehub.com/results/Xotic750/array-reduce-right-x\"\n  title=\"bettercodehub score\"\u003e\n\u003cimg src=\"https://bettercodehub.com/edge/badge/Xotic750/array-reduce-right-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://coveralls.io/github/Xotic750/array-reduce-right-x?branch=master\"\n  title=\"Coverage Status\"\u003e\n\u003cimg src=\"https://coveralls.io/repos/github/Xotic750/array-reduce-right-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\"\u003e\n\u003c/a\u003e\n\n\u003ca name=\"module_array-reduce-right-x\"\u003e\u003c/a\u003e\n\n## array-reduce-right-x\n\nReduce an array (from right to left) to a single value.\n\n\u003ca name=\"exp_module_array-reduce-right-x--module.exports\"\u003e\u003c/a\u003e\n\n### `module.exports` ⇒ \u003ccode\u003e\\*\u003c/code\u003e ⏏\n\nThis method applies a function against an accumulator and each value of the\narray (from right-to-left) to reduce it to a single value..\n\n**Kind**: Exported member  \n**Returns**: \u003ccode\u003e\\*\u003c/code\u003e - The value that results from the reduction.  \n**Throws**:\n\n- \u003ccode\u003eTypeError\u003c/code\u003e If array is null or undefined.\n- \u003ccode\u003eTypeError\u003c/code\u003e If callBack is not a function.\n- \u003ccode\u003eTypeError\u003c/code\u003e If called on an empty array without an initial value.\n\n| Param          | Type                  | Description                                                                                                                                                                                                                     |\n| -------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| array          | \u003ccode\u003earray\u003c/code\u003e    | The array to iterate over.                                                                                                                                                                                                      |\n| callBack       | \u003ccode\u003efunction\u003c/code\u003e | Function to execute for each element.                                                                                                                                                                                           |\n| [initialValue] | \u003ccode\u003e\\*\u003c/code\u003e       | Value to use as the first argument to the first call of the callback. If no initial value is supplied, the first element in the array will be used. Calling reduceRight on an empty array without an initial value is an error. |\n\n**Example**\n\n```js\nimport reduceRight from 'array-reduce-right-x';\n\nconsole.log(\n  reduceRight(\n    [0, 1, 2, 3],\n    function(a, b) {\n      return a + b;\n    },\n    0,\n  ),\n); // sum is 6\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Farray-reduce-right-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxotic750%2Farray-reduce-right-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Farray-reduce-right-x/lists"}