UNPKG

@array-like/alloc

Version:

ArrayLike allocation helper functions for JavaScript

3 lines (2 loc) 368 B
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e||self).alloc={})}(this,function(e){e._calloc=function(e){return function(n){return new e(n)}},e.alloc=function(e){return new Array(e)},e.malloc=function(e){return new ArrayBuffer(e)}}); //# sourceMappingURL=index.umd.js.map