File "forEach.ts"
Full path: /home/fsibplc/public_html/sommilito-bank2/splide-4.1.3/src/js/utils/array/forEach/forEach.ts
File
size: 397 B (397 B bytes)
MIME-type: text/x-java
Charset: utf-8
Download Open Edit Advanced Editor Back
import { toArray } from '../toArray/toArray';
/**
* The extended `Array#forEach` method that accepts a single value as an argument.
*
* @param values - A value or values to iterate over.
* @param iteratee - An iteratee function.
*/
export function forEach<T>( values: T | T[], iteratee: ( value: T, index: number, array: T[] ) => void ): void {
toArray( values ).forEach( iteratee );
}