UNPKG

@turbox3d/graphic-component-pixi

Version:

Graphic component library based on pixi

28 lines (27 loc) 1.5 kB
export declare function isObject(value: any): boolean; export declare function isPromise(value: any): any; export declare function isPlainObject(value: any): boolean; /** * 对数组从小到大排序 */ export declare function sortBy<T>(arr: T[], func?: (item: T) => number): T[]; export declare function includes<T>(array: T[], item: T): boolean; export declare function remove<T>(array: T[], item: T): void; export declare function batchRemove<T>(array: T[], items: T[]): void; export declare function batchRemoveFromSet<T>(set: Set<T>, items: T[]): void; export declare function isPrimitive(value: any): boolean; export declare function convert2UniqueString(key: string | symbol | number): string; export declare const deduplicate: <T>(array: T[]) => T[]; /** * nextTick would flush promise micro task */ export declare function nextTick(fn?: () => void): Promise<void>; export declare const hasOwn: (val: object, key: string | symbol | number) => key is never; export declare function is(x: any, y: any): boolean; export declare function bind(fn: any, ctx: any): (a?: any) => any; export declare function shallowEqual(objA: any, objB: any, ignoreKeys?: string[]): boolean; export declare const dummy: () => void; export declare function loadJSON(url: string): Promise<any>; export declare function updateQueryStringParameter(url: string, key: string, value: string): string; export declare function getContextEnv(): "browser" | "vm"; export declare function getContextParam(key: string): any;