UNPKG

@asi-ngtools/lib

Version:

This project is a little components library, simple to use, which will help you to simplify your project.

22 lines (21 loc) 1.66 kB
import { Observable } from 'rxjs'; export declare function map(array: Array<any>, mapper: (value: any, index?: number) => any): any[]; export declare function filter(array: Array<any>, iteratee: (value: any, index?: number) => any): any[]; export declare function isArray(array: any): boolean; export declare function times(howManyTimes: number, iteratee: (value?: any) => any): any[]; export declare function forEach(array: Array<any>, iteratee: (value: any, index: number) => any): void; export declare function remove(array: Array<any>, iteratee: (value: any, index: number) => any): any[]; export declare function removeAtIndex(array: Array<any>, index: number): void; export declare function get(object: any, path: any, defaultVal?: any): any; export declare function find(array: Array<any>, finder: (value: any, index: number, obj: any[]) => boolean): any; export declare function truncate(value: string, maxLength: number): string; export declare function indexOf(items: any, what: any): any; export declare function concat(...arrays: any[]): any[]; export declare function replace(str: string, reg: RegExp, newVal: string): string; export declare function orderBy(array: Array<any>, key: string, asc: 'asc' | 'desc'): any[]; export declare function orderByWithoutCase(array: Array<any>, key: string, asc: 'asc' | 'desc'): any[]; export declare function cloneDeep(object: any): any; export declare function isEmpty(item: any): boolean; export declare function isObject(val: any): boolean; export declare function join(items: Array<any>, separator: string): string | any[]; export declare function observe<T>(obs: Promise<T> | Observable<T>): Observable<T>;