extra-array-view
An array view is a proxy to an underlying array.
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.7%) to scientific vocabulary
Keywords
Repository
An array view is a proxy to an underlying array.
Basic Info
- Host: GitHub
- Owner: nodef
- License: mit
- Language: TypeScript
- Default Branch: master
- Homepage: https://www.npmjs.com/package/extra-array-view
- Size: 270 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
- Releases: 1
Topics
Metadata Files
README.md
An array view is a proxy to an underlying array.
📦 Node.js,
🌐 Web,
📜 Files,
📰 Docs,
📘 Wiki.
This package provides a view to an underlying array. It is a proxy of the
array, and any changes made to it are reflected in the underlying array. It is
similar to a slice of an array, but it does not copy the array. To obtain a
view, use the fromArray() function.
With this package, you can simplify the implementation of complex algorithms.
Try it out today! This package is available in Node.js and Web formats. To
use it on the web, simply use the extra_array_view global variable after
loading with a <script> tag from the jsDelivr CDN.
Stability: Experimental.
```javascript const xarrayView = require('extra-array-view'); // import * as xarrayView from "extra-array-view"; // import * as xarrayView from "https://unpkg.com/extra-array-view/index.mjs"; (deno)
var x = [10, 40, 30, 20, 50]; var y = xarrayView.fromArray(x, 1, 4);
y[0]; // → 40
y[1]; // → 30
y.at(-1); // → 20
y.sort(); x; // → [ 10, 20, 30, 40, 50 ]
y.reverse(); x; // → [ 10, 40, 30, 20, 50 ]
y.fill(0); x; // → [ 10, 0, 0, 0, 50 ] ```
Index
| Property | Description | | ---- | ---- | | fromArray | Convert array range to array view. |
References
- negative-array - npm : Sindre Sorhus
- TypedArray : MDN Web Docs
- Array : MDN Web Docs
- Proxy : MDN Web Docs
- Operator overloading in JavaScript : Saad Quadri
- How would you overload the [] operator in javascript
- Check if value is a Symbol in JavaScript
- how to get an array out of a javascript proxy
Owner
- Name: nodef
- Login: nodef
- Kind: organization
- Website: https://nodef.github.io/
- Repositories: 119
- Profile: https://github.com/nodef
A summary of programs made with Node.js.
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Sahu
given-names: Subhajit
orcid: https://orcid.org/0000-0001-5140-6578
title: "nodef/extra-array-view: An array view is a proxy to an underlying array"
version: 1.0.0
doi: 10.5281/zenodo.7922149
date-released: 2023-05-11
GitHub Events
Total
- Push event: 2
Last Year
- Push event: 2
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1
- Total pull requests: 6
- Average time to close issues: N/A
- Average time to close pull requests: about 1 year
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 1.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 6
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- wolfram77 (1)
Pull Request Authors
- dependabot[bot] (6)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- npm 73 last-month
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 0
(may contain duplicates) - Total versions: 65
- Total maintainers: 1
npmjs.org: extra-array-view
An array view is a proxy to an underlying array.
- Homepage: https://github.com/nodef/extra-array-view#readme
- License: MIT
-
Latest release: 1.1.1
published 11 months ago
Rankings
Maintainers (1)
npmjs.org: extra-array-view.web
An array view is a proxy to an underlying array {web}.
- Homepage: https://github.com/nodef/extra-array-view#readme
- License: MIT
-
Latest release: 1.1.1
published 11 months ago
Rankings
Maintainers (1)
Dependencies
- 104 dependencies
- @extra-array/index ^2.10.8 development
- extra-build ^1.1.27 development
- actions/checkout v4 composite
- actions/setup-node v3 composite
- coverallsapp/github-action master composite
- nodef/git-config.action v1.0.0 composite
- nodef/npm-config.action v1.0.0 composite
- paambaati/codeclimate-action v3.0.0 composite
- actions/checkout v4 composite
- actions/setup-node v3 composite
