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

@types/for-each

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/for-each

TypeScript definitions for for-each

  • 0.3.0
  • ts4.3
  • ts4.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/for-each

Summary

This package contains type definitions for for-each (https://github.com/Raynos/for-each).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/for-each.

index.d.ts

// Type definitions for for-each 0.3
// Project: https://github.com/Raynos/for-each
// Definitions by: Jordan Harband <https://github.com/ljharb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare function forEach<T = unknown, This = undefined>(arr: T[], callback: (this: This, value: T, index: number, array: T[]) => void, thisArg?: This): void;
declare function forEach<T = unknown, This = undefined>(arr: ArrayLike<T>, callback: (this: This, value: T, index: number, array: ArrayLike<T>) => void, thisArg?: This): void;
declare function forEach<V = unknown, K extends PropertyKey = PropertyKey, This = undefined>(obj: Record<K, V>, callback: (this: This, value: V, key: K, obj: Record<K, V>) => void, thisArg?: This): void;
declare function forEach<This = undefined>(str: string, callback: (this: This, value: string, index: number, str: string) => void, thisArg: This): void;

export = forEach;

Additional Details

  • Last updated: Mon, 11 Sep 2023 20:03:06 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Jordan Harband.

FAQs

Package last updated on 11 Sep 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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc