/** * Iterates over a collection, providing the previous, current and next items to the predicate function. * * @param {Collection} collection * @param {Predicate} predicate * @returns {Array} * @category Collections */ export default function threepiece(collection: Collection, predicate: Predicate): any[];