I fail to parse the first query string parameter using the qs
npm package. What am I doing wrong?
I execute these commands in my console
import * as qs from './qs'
var addr = "https://www.somesite.se/?title=querystring&action=edit"
var parsed = qs.parse(addr)
After executing these commands parsed
has the value:
{ 'https://www.somesite.se/?title': 'querystring',
action: 'edit' }
This is strange. Why is title
not a property on the returned object? I would expect the value of parsed.title
to be 'querystring'
. but it is not. The value of parsed.title
is undefined
.
Why?