Socket
Socket
Sign inDemoInstall

@types/d3-array

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/d3-array - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

22

d3-array/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for D3JS d3-array module 2.3
// Type definitions for D3JS d3-array module 2.4
// Project: https://github.com/d3/d3-array, https://d3js.org/d3-array

@@ -12,3 +12,3 @@ // Definitions by: Alex Ford <https://github.com/gustavderdrache>

// Last module patch version validated against: 2.3.3
// Last module patch version validated against: 2.4.0

@@ -170,2 +170,20 @@ // --------------------------------------------------------------------------

/**
* Returns the cumulative sum of the given iterable of numbers, as a Float64Array of the same length.
* If the iterable contains no numbers, returns zeros.
* An optional accessor function may be specified, which is equivalent to calling Array.from before computing the cumulative sum.
* This method ignores undefined and NaN values; this is useful for ignoring missing data.
*/
export function cumsum<T extends Numeric>(iterable: Iterable<T | undefined | null>): Float64Array;
/**
* Returns the cumulative sum of the given iterable of numbers, as a Float64Array of the same length.
* If the iterable contains no numbers, returns zeros.
* An optional accessor function may be specified, which is equivalent to calling Array.from before computing the cumulative sum.
* This method ignores undefined and NaN values; this is useful for ignoring missing data.
*/
export function cumsum<T>(
iterable: Iterable<T>,
accessor: (element: T, i: number, array: Iterable<T>) => number | undefined | null
): Float64Array;
/**
* Returns the p-quantile of the given iterable of numbers, where p is a number in the range [0, 1].

@@ -172,0 +190,0 @@ *

4

d3-array/package.json
{
"name": "@types/d3-array",
"version": "2.3.0",
"version": "2.4.0",
"description": "TypeScript definitions for D3JS d3-array module",

@@ -47,4 +47,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "db80d1adfa92e82f5185c0ae308ac0c1a1f41347e3b607a1418ea4655604cc03",
"typesPublisherContentHash": "84eab84566be27c3703a959b297ff65816f04744271fd2cccf6ce0c5c3d14394",
"typeScriptVersion": "3.2"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 20 Oct 2020 06:39:43 GMT
* Last updated: Wed, 28 Oct 2020 19:42:23 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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