mirror of https://github.com/nodejs/node.git
doc: unify number/integer types in buffer.md
PR-URL: https://github.com/nodejs/node/pull/27030 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>pull/27037/head
parent
3c11f64e35
commit
2f338f3fa1
|
@ -867,11 +867,11 @@ A `TypeError` will be thrown if `buffer` is not a `Buffer`.
|
|||
added: v8.2.0
|
||||
-->
|
||||
|
||||
* `object` {Object} An object supporting `Symbol.toPrimitive` or `valueOf()`
|
||||
* `offsetOrEncoding` {number|string} A byte-offset or encoding, depending on
|
||||
* `object` {Object} An object supporting `Symbol.toPrimitive` or `valueOf()`.
|
||||
* `offsetOrEncoding` {integer|string} A byte-offset or encoding, depending on
|
||||
the value returned either by `object.valueOf()` or
|
||||
`object[Symbol.toPrimitive]()`.
|
||||
* `length` {number} A length, depending on the value returned either by
|
||||
* `length` {integer} A length, depending on the value returned either by
|
||||
`object.valueOf()` or `object[Symbol.toPrimitive]()`.
|
||||
|
||||
For objects whose `valueOf()` function returns a value not strictly equal to
|
||||
|
|
Loading…
Reference in New Issue