Idiomatic representation of { buffer, bytesRead }

Domenic Denicola d at
Thu Mar 5 22:16:00 UTC 2015

From: Jason Orendorff [mailto:jason.orendorff at]

> Would it make it seem less strange if you specified the argument as a
> "dictionary" with these properties:
>     {buffer:, byteOffset:, byteLength:, constructor:}
> ...and then casually mention that DataViews and TypedArrays both happen
> to quack in just this way?

Yes, this in fact makes me very happy :)

More information about the es-discuss mailing list