util.ts
Utils for mobile browsers, built with TypeScript
Cookies
setCookie(key: string, value: string): void;
getCookie(key: string): string;
getAllCookie(): Cookies;
removeCookie(key: string): void;
QueryString
getQueryString(key: string): string;
getAllQueryString(key: string): QueryStrings;
Object
isEmptyObject(obj: Object): boolean;
objectAssign(target: Object, ...args: Object[]): Object;
objectToQuery(obj: Object): string;
Polyfills
raf(callback: Function): number;
cancelRaf(id: number): void;
Others
decode(value: string): string;
detectWebp(callback: (result: boolean) => void);