Version 1
[yaffs-website] / node_modules / typedarray / example / tarray.js
diff --git a/node_modules/typedarray/example/tarray.js b/node_modules/typedarray/example/tarray.js
new file mode 100644 (file)
index 0000000..8423d7c
--- /dev/null
@@ -0,0 +1,4 @@
+var Uint8Array = require('../').Uint8Array;
+var ua = new Uint8Array(5);
+ua[1] = 256 + 55;
+console.log(ua[1]);