| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -569,7 +569,7 @@ Array entries outside that range will be truncated to fit into it. | |||
| 569 | 569 | const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); | |
| 570 | 570 | ``` | |
| 571 | 571 | ||
| 572 | - A `TypeError` will be thrown if `array` is not an `Array` or other type | ||
| 572 | + A `TypeError` will be thrown if `array` is not an `Array` or another type | ||
| 573 | 573 | appropriate for `Buffer.from()` variants. | |
| 574 | 574 | ||
| 575 | 575 | `Buffer.from(array)` and [`Buffer.from(string)`][] may also use the internal | |
@@ -623,7 +623,8 @@ console.log(buf.length); | |||
| 623 | 623 | ``` | |
| 624 | 624 | ||
| 625 | 625 | A `TypeError` will be thrown if `arrayBuffer` is not an [`ArrayBuffer`][] or a | |
| 626 | - [`SharedArrayBuffer`][] or other type appropriate for `Buffer.from()` variants. | ||
| 626 | + [`SharedArrayBuffer`][] or another type appropriate for `Buffer.from()` | ||
| 627 | + variants. | ||
| 627 | 628 | ||
| 628 | 629 | ### Class Method: `Buffer.from(buffer)` | |
| 629 | 630 | <!-- YAML | |
@@ -647,7 +648,7 @@ console.log(buf2.toString()); | |||
| 647 | 648 | // Prints: buffer | |
| 648 | 649 | ``` | |
| 649 | 650 | ||
| 650 | - A `TypeError` will be thrown if `buffer` is not a `Buffer` or other type | ||
| 651 | + A `TypeError` will be thrown if `buffer` is not a `Buffer` or another type | ||
| 651 | 652 | appropriate for `Buffer.from()` variants. | |
| 652 | 653 | ||
| 653 | 654 | ### Class Method: `Buffer.from(object[, offsetOrEncoding[, length]])` | |
@@ -684,8 +685,8 @@ const buf = Buffer.from(new Foo(), 'utf8'); | |||
| 684 | 685 | // Prints: <Buffer 74 68 69 73 20 69 73 20 61 20 74 65 73 74> | |
| 685 | 686 | ``` | |
| 686 | 687 | ||
| 687 | - A `TypeError` will be thrown if `object` has not mentioned methods or is not of | ||
| 688 | - other type appropriate for `Buffer.from()` variants. | ||
| 688 | + A `TypeError` will be thrown if `object` does not have the mentioned methods or | ||
| 689 | + is not of another type appropriate for `Buffer.from()` variants. | ||
| 689 | 690 | ||
| 690 | 691 | ### Class Method: `Buffer.from(string[, encoding])` | |
| 691 | 692 | <!-- YAML | |
@@ -710,7 +711,7 @@ console.log(buf1.toString('latin1')); | |||
| 710 | 711 | // Prints: this is a tést | |
| 711 | 712 | ``` | |
| 712 | 713 | ||
| 713 | - A `TypeError` will be thrown if `string` is not a string or other type | ||
| 714 | + A `TypeError` will be thrown if `string` is not a string or another type | ||
| 714 | 715 | appropriate for `Buffer.from()` variants. | |
| 715 | 716 | ||
| 716 | 717 | ### Class Method: `Buffer.isBuffer(obj)` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments