REPL: remove parts of the url that are falsy/empty since unncessary
See original GitHub issueSo for a url like
https://babeljs.io/repl/#?babili=false&browsers=&build=&builtIns=false&code_lz=IZA&debug=false&circleciRepo=&evaluate=false&lineWrap=true&presets=es2015-loose&targets=&version=7.0.0-beta.0
Some of the fields that are either &key=
or &key=false
can be removed and it should work the same?
babili=false&browsers=&build=&builtIns=false&debug=false&circleciRepo=&evaluate=false&targets=
This is because we don’t have default true/false so not setting false should be ok. Basically then we can have a shorter url
(unless we create a button somewhere to shorten the url or something)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Remove blank attributes from an Object in Javascript
This function uses recursion to remove items from nested objects. ... Filter all falsy values ( "" , 0 , false , null...
Read more >How To Remove Unwanted Parts From Strings in Pandas
Removing discarding unwanted parts from strings in pandas dataframe columns using replace(), split() string methods and regular expressions ...
Read more >How To Remove Characters from a String in Python
Remove Characters From a String Using the replace() Method. The String replace() method replaces a character with a new character. You can ......
Read more >The Double-Bang (!!) Operator And A Misunderstanding Of ...
And, since the an empty String is inherently a Falsy value and the OR. // operator also deals with Truthy / Falsy values,...
Read more >URL | Node.js v19.3.0 Documentation
Constructing a URL from component parts and getting the constructed string ... Thus, unlike legacy urlObject s, using the delete keyword on any...
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
Instead of stripping
false
, we should strip params that have the default value. It’s possible we already have params that default totrue
, or might in the future.I have concerns about this proposed change, as mentioned in this comment.