time-to-botec/js/node_modules/@stdlib/buffer/from-array/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

23 lines
377 B
Plaintext

{{alias}}( arr )
Allocates a buffer using an octet array.
Parameters
----------
arr: Array<integer>
Array (or array-like object) of octets from which to copy.
Returns
-------
out: Buffer
Buffer instance.
Examples
--------
> var buf = {{alias}}( [ 1, 2, 3, 4 ] )
<Buffer>[ 1, 2, 3, 4 ]
See Also
--------