array-like/alloc

View on GitHub
src/malloc.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Method that allocates an ArrayBuffer.
 *
 * @param {number} n
 * @return {ArrayBuffer}
 */
const malloc = (n) => new ArrayBuffer(n);
export default malloc;