/*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT https://github.com/electricessence/TypeScript.NET-Core/blob/master/LICENSE.md */ import {ActionWithIndex, PredicateWithIndex} from "../../FunctionTypes"; export interface IEnumerateEach { // Note: Enforcing an interface that allows operating on a arrayCopy can prevent changing underlying data while enumerating. /** * If the action returns false, the enumeration will stop. * @param action * @param useCopy */ forEach(action:ActionWithIndex, useCopy?:boolean):number; forEach(action:PredicateWithIndex, useCopy?:boolean):number; } export default IEnumerateEach;