16 lines
254 B
JavaScript
16 lines
254 B
JavaScript
import {
|
|
createSizedArray,
|
|
} from '../helpers/arrays';
|
|
|
|
const pooling = (function () {
|
|
function double(arr) {
|
|
return arr.concat(createSizedArray(arr.length));
|
|
}
|
|
|
|
return {
|
|
double: double,
|
|
};
|
|
}());
|
|
|
|
export default pooling;
|