tomayac’s avatartomayac’s Twitter Archive—№ 8,880

    1. …in reply to @poshaughnessy
      @poshaughnessy @NOtherDev @samsunginternet Found it: console.log(new URLSearchParams('?id=1').get('id')); console.log(new URLSearchParams('id=1').get('id')); Both print 1 on Chrome…
  1. …in reply to @tomayac
    @poshaughnessy @NOtherDev @samsunginternet …But only console.log(new URLSearchParams('id=1').get('id')); 🐛 Bug: in @SamsungInternet, the '?' is _not_ ignored: developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams