PHP Classes

File: src/utils/url-generator.ts

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   Maniruzzaman WordPress Frontend Editor   src/utils/url-generator.ts   Download  
File: src/utils/url-generator.ts
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Maniruzzaman WordPress Frontend Editor
WordPress plugin for visual front-end development
Author: By
Last change:
Date: 8 months ago
Size: 275 bytes
 

Contents

Class file image Download
export const buildQueryByParameters = (filter: object, baseUrl: string) => { const queryParams = Object.entries(filter) .filter(([, value]) => value) .map(([key, value]) => `${key}=${value}`) .join('&'); return `${baseUrl}?${queryParams}`; }