You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
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

TypeScript definitions for d3-array


Version published
Weekly downloads
2.9M
decreased by-19.77%
Maintainers
1
Install size
47.9 kB
Created
Weekly downloads
 

Package description

What is @types/d3-array?

The @types/d3-array package provides TypeScript type definitions for d3-array, a module in the D3.js library that offers powerful data manipulation capabilities such as computing statistics, searching, sorting, and reshaping arrays. These type definitions enable TypeScript developers to use d3-array with type safety, ensuring that their code is more robust and less prone to runtime errors.

What are @types/d3-array's main functionalities?

Statistics

Compute basic statistics such as maximum and mean values of numeric arrays.

import { max, mean } from 'd3-array';

const numbers = [1, 2, 3, 4, 5];
const maximumValue = max(numbers);
const meanValue = mean(numbers);

Searching

Search for a value in a sorted array using binary search, returning the index of the value.

import { bisectLeft } from 'd3-array';

const numbers = [1, 2, 3, 4, 5];
const index = bisectLeft(numbers, 3);

Transformations

Transform arrays by merging multiple arrays into one.

import { merge } from 'd3-array';

const arrays = [[1, 2], [3, 4], [5]];
const mergedArray = merge(arrays);

Other packages similar to @types/d3-array

Readme

Source

Installation

npm install --save @types/d3-array

Summary

This package contains type definitions for d3-array (https://github.com/d3/d3-array).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-array.

Additional Details

  • Last updated: Wed, 18 Oct 2023 00:05:18 GMT
  • Dependencies: none

Credits

These definitions were written by Alex Ford, Boris Yankov, Tom Wanzek, denisname, Hugues Stefanski, Nathan Bierema, and Fil.

FAQs

Package last updated on 18 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc