arrays.js
function create(length) {
  var array = new Array(length);

  // Create a non-enumerable property as a flag to know if the array is in use
  Object.defineProperties(array, {
    inUse: {
      enumerable: false,
      writable: true,
      value: false
    },
    originalLength: {
      enumerable: false,
      value: length
    }
  });

  if (!pool[length]) pool[length] = [];
  pool[length].push(array);

  return array;
}
function create(length) {
  var array = new Array(length);

  // Create a non-enumerable property as a flag to know if the array is in use
  Object.defineProperties(array, {
    inUse: {
      enumerable: false,
      writable: true,
      value: false
    },
    originalLength: {
      enumerable: false,
      value: length
    }
  });

  if (!pool[length]) pool[length] = [];
  pool[length].push(array);

  return array;
}
function create ( length ) { var array = new Array ( length ) ; // Create a non-enumerable property as a flag to know if the array is in use Object . defineProperties ( array , { inUse : { enumerable : false , writable : true , value : false } , originalLength : { enumerable : false , value : length } } ) ; if ( ! pool [ length ] ) pool [ length ] = [ ] ; pool [ length ] . push ( array ) ; return array ; }
Create a new array and add it to the pool for the specified length.

@param {number} length The length of the array to create.

@return {Array} The new array.
Create a new array and add it to the pool for the specified length .