Re: [whatwg/fetch] Proposal: `Response.json` helper (Issue #1389)

I'll note that at least the Geometry API has static methods with `fromX` naming scheme, e.g.:

https://drafts.fxtf.org/geometry/#dommatrix

It seems easier to find the right documentation between `Response.json` and `Response.prototype.json` if they have different names.

`Response.json(obj)` is slightly easier to type than `Response.fromJSON(obj)`, though personally I think the latter is more obvious what it does.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1389#issuecomment-1149688269
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1389/1149688269@github.com>

Received on Wednesday, 8 June 2022 09:34:46 UTC