@wuapi/essential
Version:
Essential definition of WU-API
15 lines (14 loc) • 443 B
TypeScript
/**
* Check if objects are null or undefined
* @param args Objects to check
* @returns true if ALL objects are neither null, nor undefined.
*/
export declare function notNU(...args: (any | null | undefined)[]): boolean;
/**
* Convenient function to go through objects.
* @param o The object
* @param cb The callback function
*/
export declare function forIn<T>(o: {
[key: string]: T;
}, cb: (value: T, key: string) => void): void;