Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stdlib/array-base-getter

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/array-base-getter - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

CITATION.cff

12

docs/types/index.d.ts

@@ -19,7 +19,7 @@ /*

// TypeScript Version: 2.0
// TypeScript Version: 4.1
/// <reference types="@stdlib/types"/>
import { Collection } from '@stdlib/types/object';
import { Collection } from '@stdlib/types/array';

@@ -114,3 +114,3 @@ /**

*/
type GetGeneric = ( arr: Array<any>, idx: number ) => any;
type GetGeneric<T> = ( arr: Array<T>, idx: number ) => T | void;

@@ -124,3 +124,3 @@ /**

*/
type GetArrayLike = ( arr: Collection, idx: number ) => any;
type GetArrayLike<T> = ( arr: Collection<T>, idx: number ) => T | void;

@@ -293,3 +293,3 @@ /**

*/
declare function getter( dtype: 'generic' ): GetGeneric;
declare function getter<T = unknown>( dtype: 'generic' ): GetGeneric<T>; // tslint:disable-line:no-unnecessary-generics

@@ -311,3 +311,3 @@ /**

*/
declare function getter( dtype: string ): GetArrayLike;
declare function getter<T = unknown>( dtype: string ): GetArrayLike<T>; // tslint:disable-line:no-unnecessary-generics

@@ -314,0 +314,0 @@

{
"name": "@stdlib/array-base-getter",
"version": "0.0.1",
"version": "0.1.0",
"description": "Return an accessor function for retrieving an element from an indexed array-like object.",

@@ -40,14 +40,14 @@ "license": "Apache-2.0",

"dependencies": {
"@stdlib/types": "^0.0.x"
"@stdlib/types": "^0.1.0"
},
"devDependencies": {
"@stdlib/array-dtype": "^0.0.x",
"@stdlib/array-dtypes": "^0.0.x",
"@stdlib/array-filled": "^0.0.x",
"@stdlib/array-filled-by": "^0.0.x",
"@stdlib/array-typed-real-dtypes": "^0.0.x",
"@stdlib/assert-is-function": "^0.0.x",
"@stdlib/bench": "^0.0.x",
"@stdlib/math-base-assert-is-nan": "^0.0.x",
"@stdlib/random-base-discrete-uniform": "^0.0.x",
"@stdlib/array-dtype": "^0.0.6",
"@stdlib/array-dtypes": "^0.1.0",
"@stdlib/array-filled": "^0.0.6",
"@stdlib/array-filled-by": "^0.0.2",
"@stdlib/array-typed-real-dtypes": "^0.1.0",
"@stdlib/assert-is-function": "^0.1.0",
"@stdlib/bench": "^0.1.0",
"@stdlib/math-base-assert-is-nan": "^0.1.0",
"@stdlib/random-base-discrete-uniform": "^0.0.6",
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",

@@ -83,5 +83,5 @@ "istanbul": "^0.4.1",

"funding": {
"type": "patreon",
"url": "https://www.patreon.com/athan"
"type": "opencollective",
"url": "https://opencollective.com/stdlib"
}
}

@@ -21,2 +21,13 @@ <!--

<details>
<summary>
About stdlib...
</summary>
<p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
<p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
<p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
<p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
</details>
# getter

@@ -201,4 +212,4 @@

[test-image]: https://github.com/stdlib-js/array-base-getter/actions/workflows/test.yml/badge.svg?branch=v0.0.1
[test-url]: https://github.com/stdlib-js/array-base-getter/actions/workflows/test.yml?query=branch:v0.0.1
[test-image]: https://github.com/stdlib-js/array-base-getter/actions/workflows/test.yml/badge.svg?branch=v0.1.0
[test-url]: https://github.com/stdlib-js/array-base-getter/actions/workflows/test.yml?query=branch:v0.1.0

@@ -216,3 +227,3 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/array-base-getter/main.svg

[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://gitter.im/stdlib-js/stdlib/
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im

@@ -219,0 +230,0 @@ [stdlib]: https://github.com/stdlib-js/stdlib

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc