UNPKG

ts-model

Version:

[![Build Status](https://travis-ci.org/mulesoft-labs/ts-model.svg?branch=master)](https://travis-ci.org/mulesoft-labs/ts-model)

8 lines (7 loc) 360 B
export interface ListIterator<T, TResult> { (value: T, index: number, list: T[]): TResult; } export declare function find<T>(t: T[], it: ListIterator<T, boolean>): T; export declare function filter<T>(t: T[], it: ListIterator<T, boolean>): T[]; export declare function unique<T>(t: T[]): T[]; export declare function sortBy<T>(t: T[], field: string): T[];