See https://github.com/w3c/FileAPI/pull/198. This is like the existing `arrayBuffer()` method, but gives you a Uint8Array instead. Tests at https://github.com/web-platform-tests/wpt/pull/46232 See also https://github.com/nodejs/undici/issues/3256 for the issue for doing the same for Request/Response. There's also [a PR adding the same method to PushMessageData](https://github.com/w3c/push-api/pull/369), but I don't _think_ it's relevant to node. Mentioning it here anyway just in case I'm wrong.
See w3c/FileAPI#198. This is like the existing
arrayBuffer()method, but gives you a Uint8Array instead.Tests at web-platform-tests/wpt#46232
See also nodejs/undici#3256 for the issue for doing the same for Request/Response.
There's also a PR adding the same method to PushMessageData, but I don't think it's relevant to node. Mentioning it here anyway just in case I'm wrong.