New feature : Option to add leading "?"
See original GitHub issueWould you be open to PR for adding following option?
Example:
let params = {
"foo": bar
}
const url = `http://abc.com/xyz${stringify(params,{separator:true}})`
//prints http://abc.com/xyz?foo=bar
with falsy params
let params = undefined;
const url = `http://abc.com/xyz${stringify(params,{seperator:true})`
//prints http://abc.com/xyz
Rationale: Avoid ternary checks like this everywhere:
const url = params? 'http://abc.com/xyz?${stringify(params)' : 'http://abc.com/xyz'
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Leading zeros in Excel: how to add, remove and hide - Ablebits
This tutorial shows different ways to add leading zeros in Excel: how to keep zeros as you type, show leading zeros in cells,...
Read more >9 Ways To Add Leading Zeros In Excel
Select the range of cells you want to add leading zeros to and open up the Format Cells dialog box. Right click and...
Read more >Add Leading Zeros to a Number in Power BI Using Power Query
Learn how to add leading zero in Power BI using Power Query with a very simple step. You will have options to use...
Read more >iOS 16 - New Features - Apple
Add audiograms to Health. Import your audiograms into the Health app on your iPhone. Additional customization options for Sound Recognition. Train iPhone to ......
Read more >Add a Leading Zero in Excel | MyExcelOnline
Change format to Text ... Since the reason why the zeros are tossed out is that Excel treats these values as numbers. The...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think it would be better to add a method that does the inverse of
.parseUrl()
.+1
My case: