{"id":21831415,"url":"https://github.com/nodef/extra-array-view","last_synced_at":"2026-01-08T08:45:31.740Z","repository":{"id":39984636,"uuid":"264140272","full_name":"nodef/extra-array-view","owner":"nodef","description":"An array view is a proxy to an underlying array.","archived":false,"fork":false,"pushed_at":"2025-04-08T17:17:02.000Z","size":276,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-05T00:19:11.262Z","etag":null,"topics":["array","extra","from-array","view"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/extra-array-view","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-15T08:33:01.000Z","updated_at":"2025-04-08T17:17:03.000Z","dependencies_parsed_at":"2025-04-12T18:15:52.887Z","dependency_job_id":"e8d15c80-d48d-44c2-a215-2a236ff67c13","html_url":"https://github.com/nodef/extra-array-view","commit_stats":null,"previous_names":["nodef/extra-arrayview"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nodef/extra-array-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-array-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-array-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-array-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-array-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodef","download_url":"https://codeload.github.com/nodef/extra-array-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-array-view/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278892166,"owners_count":26063943,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","extra","from-array","view"],"created_at":"2024-11-27T19:10:20.185Z","updated_at":"2025-10-08T05:31:46.715Z","avatar_url":"https://github.com/nodef.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"An [array view] is a proxy to an underlying array.\u003cbr\u003e\n📦 [Node.js](https://www.npmjs.com/package/extra-array-view),\n🌐 [Web](https://www.npmjs.com/package/extra-array-view.web),\n📜 [Files](https://unpkg.com/extra-array-view/),\n📰 [Docs](https://nodef.github.io/extra-array-view/),\n📘 [Wiki](https://github.com/nodef/extra-array-view/wiki/).\n\n\u003cbr\u003e\n\n\nThis package provides a **view** to an underlying array. It is a proxy of the\narray, and any changes made to it are reflected in the underlying array. It is\nsimilar to a *slice* of an array, but it does not copy the array. To obtain a\nview, use the `fromArray()` function.\n\nWith this package, you can simplify the implementation of complex algorithms.\nTry it out today! This package is available in *Node.js* and *Web* formats. To\nuse it on the web, simply use the `extra_array_view` global variable after\nloading with a `\u003cscript\u003e` tag from the [jsDelivr CDN].\n\n\u003e Stability: [Experimental](https://www.youtube.com/watch?v=L1j93RnIxEo).\n\n[array view]: https://stackoverflow.com/questions/16990064/are-array-views-possible\n[jsDelivr CDN]: https://cdn.jsdelivr.net/npm/extra-array-view.web/index.js\n\n\u003cbr\u003e\n\n```javascript\nconst xarrayView = require('extra-array-view');\n// import * as xarrayView from \"extra-array-view\";\n// import * as xarrayView from \"https://unpkg.com/extra-array-view/index.mjs\"; (deno)\n\nvar x = [10, 40, 30, 20, 50];\nvar y = xarrayView.fromArray(x, 1, 4);\n\ny[0];\n// → 40\n\ny[1];\n// → 30\n\ny.at(-1);\n// → 20\n\ny.sort();\nx;\n// → [ 10, 20, 30, 40, 50 ]\n\ny.reverse();\nx;\n// → [ 10, 40, 30, 20, 50 ]\n\ny.fill(0);\nx;\n// → [ 10, 0, 0, 0, 50 ]\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n## Index\n\n| Property | Description |\n|  ----  |  ----  |\n| [fromArray] | Convert array range to array view. |\n\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n## References\n\n- [negative-array - npm : Sindre Sorhus](https://www.npmjs.com/package/negative-array)\n- [TypedArray : MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray)\n- [Array : MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)\n- [Proxy : MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy)\n- [Operator overloading in JavaScript : Saad Quadri](https://www.proposals.es/proposals/Operator%20overloading)\n- [How would you overload the [] operator in javascript](https://stackoverflow.com/a/25658975/1413259)\n- [Check if value is a Symbol in JavaScript](https://stackoverflow.com/a/46479190/1413259)\n- [how to get an array out of a javascript proxy](https://stackoverflow.com/a/71645169/1413259)\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n[![](https://img.youtube.com/vi/z0ttvjJvh2s/maxresdefault.jpg)](https://www.youtube.com/watch?v=z0ttvjJvh2s)\u003cbr\u003e\n[![ORG](https://img.shields.io/badge/org-nodef-green?logo=Org)](https://nodef.github.io)\n[![Coverage Status](https://coveralls.io/repos/github/nodef/extra-array-view/badge.svg?branch=master)](https://coveralls.io/github/nodef/extra-array-view?branch=master)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/b5039bd76147c1625bce/test_coverage)](https://codeclimate.com/github/nodef/extra-array-view/test_coverage)\n\u003c!-- [![DOI](https://zenodo.org/badge/133759104.svg)](https://zenodo.org/badge/latestdoi/133759104) --\u003e\n\n![](https://ga-beacon.deno.dev/G-RC63DPBH3P:SH3Eq-NoQ9mwgYeHWxu7cw/github.com/nodef/extra-array-view)\n\n[fromArray]: https://github.com/nodef/extra-array-view/wiki/fromArray\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-array-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodef%2Fextra-array-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-array-view/lists"}