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 1.0.8 to 1.1.0

35

d3-array/index.d.ts

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

// Type definitions for D3JS d3-array module 1.0
// Type definitions for D3JS d3-array module 1.1
// Project: https://github.com/d3/d3-array

@@ -6,3 +6,3 @@ // Definitions by: Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>, Tom Wanzek <https://github.com/tomwanzek>

// Last module patch version validated against: 1.0.2
// Last module patch version validated against: 1.1.0

@@ -185,4 +185,24 @@ // --------------------------------------------------------------------------

/**
* Returns the Cartesian product of the two arrays a and b.
* For each element i in the specified array a and each element j in the specified array b, in order,
* it creates a two-element array for each pair.
*
* @param a First input array.
* @param b Second input array.
*/
export function cross<S, T>(a: S[], b: T[]): Array<[S, T]>;
/**
* Returns the Cartesian product of the two arrays a and b.
* For each element i in the specified array a and each element j in the specified array b, in order,
* invokes the specified reducer function passing the element i and element j.
*
* @param a First input array.
* @param b Second input array.
* @param reducer A reducer function taking as input an element from "a" and "b" and returning a reduced value.
*/
export function cross<S, T, U>(a: S[], b: T[], reducer: (a: S, b: T) => U): U[];
/**
* Merges the specified arrays into a single array.

@@ -195,4 +215,15 @@ */

* Returns the empty array if the input array has fewer than two elements.
*
* @param array Array of input elements
*/
export function pairs<T>(array: T[]): Array<[T, T]>;
/**
* For each adjacent pair of elements in the specified array, in order, invokes the specified reducer function passing the element i and element i - 1.
* Returns the resulting array of pair-wise reduced elements.
* Returns the empty array if the input array has fewer than two elements.
*
* @param array Array of input elements
* @param reducer A reducer function taking as input to adjecent elements of the input array and returning a reduced value.
*/
export function pairs<T, U>(array: T[], reducer: (a: T, b: T) => U): U[];

@@ -199,0 +230,0 @@ /**

4

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

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

"peerDependencies": {},
"typesPublisherContentHash": "e4e37d13e0f28ec6970b761c95aa651254aea597d8d858c0171b45f972603a61",
"typesPublisherContentHash": "37fecaca0a42dccd30cf6e96d78892716deece25f620e6296fd2fe5a1edcca75",
"typeScriptVersion": "2.0"
}

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

Additional Details
* Last updated: Mon, 20 Feb 2017 07:52:32 GMT
* Last updated: Thu, 09 Mar 2017 00:19:49 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