sv443-joke-api
Version:
JavaScript wrapper for Sv443's Joke API
18 lines (17 loc) • 536 B
TypeScript
/**
* Capitalizes a string's first letter and make other letters lowercased.
* @private
*/
export declare const capitalize: (str: string) => string;
/**
* Removes null, undefined and "" from a object
* @private
*/
export declare const cleanObject: (p: object) => object;
declare type TesterFunction = (item: string) => boolean;
/**
* @todo Find a better name for this function
* @private
*/
export declare const arrayTesting: (arr: (string | number)[], tester: TesterFunction, condition: "all" | "some") => boolean;
export {};