Miscellaneous
vue.min.js vue-router.js jquery.form.js jquery-1.4.2.min.js
function copy(src) { var dst = new ArrayBuffer(src.byteLength); new Uint8Array(dst).set(new Uint8Array(src)); return dst; }
if (typeof v === 'function') { // do something }
const arrayBuffer = new ArrayBuffer(16); const buffer = Buffer.from(arrayBuffer); // buffer to string buffer.toString(encoding, start, end);
function getRandomInt(max) { return Math.floor(Math.random() * Math.floor(max)); }
Last updated