UNPKG

multiple-select-vanilla

Version:

This lib allows you to select multiple elements with checkboxes

19 lines 1.16 kB
/** Compare two objects */ export declare function compareObjects(objectA: any, objectB: any, compareLength?: boolean): boolean; /** make deep copy clone of an object */ export declare function deepCopy<T = any>(obj: T): T; export declare function isDefined<T>(value: T | undefined | null): value is T; /** * Remove all empty props from an object, * we can optionally provide a fixed list of props to consider for removal (anything else will be excluded) * @param {*} obj * @param {Array<String>} [clearProps] - optional list of props to consider for removal (anything else will be excluded) * @returns cleaned object */ export declare function objectRemoveEmptyProps(obj: any, clearProps?: string[]): any; export declare function setDataKeys(data: any[]): number; export declare function findByParam(data: any, param: any, value: any): any; export declare function stripScripts(dirtyHtml: string): string; export declare function removeUndefined<T extends Record<string, unknown> = Record<string, unknown>>(obj: T): T; export declare function removeDiacritics(str: string, customParser?: (t: string) => string): string; //# sourceMappingURL=utils.d.ts.map