type-comparator
Version:
Useful comparator functions written on Typescript
14 lines (13 loc) • 429 B
TypeScript
import { Chainable, Mapper, Comparator, Condition } from "../interfaces";
import { ThenChain } from "./then-chain";
export declare class Chain implements Chainable {
private mutations;
constructor();
reverse(): this;
map(mapper: Mapper): this;
if(condition: Condition): ThenChain;
use(comparatorOrComparators: Comparator | Comparator[]): any;
asc(): any;
desc(): any;
private static mutate;
}