aboutsummaryrefslogtreecommitdiff
path: root/node_modules/typedarray/example
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/typedarray/example')
-rw-r--r--node_modules/typedarray/example/tarray.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/node_modules/typedarray/example/tarray.js b/node_modules/typedarray/example/tarray.js
new file mode 100644
index 00000000..8423d7c9
--- /dev/null
+++ b/node_modules/typedarray/example/tarray.js
@@ -0,0 +1,4 @@
+var Uint8Array = require('../').Uint8Array;
+var ua = new Uint8Array(5);
+ua[1] = 256 + 55;
+console.log(ua[1]);