multiple-select-vanilla
Version:
This lib allows you to select multiple elements with checkboxes
25 lines • 1.38 kB
TypeScript
/** Compare two objects */
export declare function compareObjects(objectA: any, objectB: any, compareLength?: boolean): boolean;
/**
* Create an immutable clone of an array or object
* (c) 2019 Chris Ferdinandi, MIT License, https://gomakethings.com
* @param {Array|Object} objectOrArray - the array or object to copy
* @return {Array|Object} - the clone of the array or object
*/
export declare function deepCopy(objectOrArray: any | any[]): any | any[];
export declare function isDefined(val: any): boolean;
/**
* 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(obj: any): any;
export declare function toCamelCase(str: string): string;
export declare function removeDiacritics(str: string, customParser?: (t: string) => string): string;
//# sourceMappingURL=utils.d.ts.map