interface ObjectConstructor { /** * Count size length of object */ size: (obj: any) => number; //[pair: any]: any; /** * check if has child and go for callback * @param str match child property * @param callback function callback * @author Dimas Lanjaka */ child(str: string | number, callback: Function): any; /** * check object has child, if not exist return alternative value * @param str match child property * @param alternative default value callback * @author Dimas Lanjaka */ alt(str: any, alternative: string | number | boolean): any; /** * Check object has child * @param str */ has(str: string | number): any; }