
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@types/array-foreach
Advanced tools
TypeScript definitions for array-foreach
npm install --save @types/array-foreach
This package contains type definitions for array-foreach (https://www.npmjs.com/package/array-foreach).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/array-foreach.
/**
* Performs the specified action for each element in an array.
* @param arr Array of items to iterate over
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
declare function forEach<T>(arr: T[], callbackfn: (value: T, index: number, array: readonly T[]) => void): void;
declare function forEach<T, U>(
arr: T[],
callbackfn: (this: U, value: T, index: number, array: readonly T[]) => void,
thisArg: U,
): void;
/**
* Performs the specified action for each element in an array.
* @param arr Nodelist of items to iterate over
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
declare function forEach<T extends Node>(
arr: NodeListOf<T>,
callbackfn: (value: T, index: number, array: readonly T[]) => void,
): void;
declare function forEach<T extends Node, U>(
arr: NodeListOf<T>,
callbackfn: (this: U, value: T, index: number, array: readonly T[]) => void,
thisArg: U,
): void;
export = forEach;
These definitions were written by Steve Jenkins.
FAQs
TypeScript definitions for array-foreach
We found that @types/array-foreach demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.