UNPKG

react-photoswipe-gallery

Version:
10 lines (7 loc) 258 B
export type InputObject = Record<string, string | number | undefined> function objectToHash(obj: InputObject): string { return Object.entries(obj) .map(([key, value]) => (value ? `${key}=${value}` : key)) .join('&') } export default objectToHash