pooling.js 239 B

123456789101112131415
  1. import {
  2. createSizedArray,
  3. } from '../helpers/arrays';
  4. const pooling = (function () {
  5. function double(arr) {
  6. return arr.concat(createSizedArray(arr.length));
  7. }
  8. return {
  9. double: double,
  10. };
  11. }());
  12. export default pooling;