8 lines
210 B
JavaScript
8 lines
210 B
JavaScript
import { genGood } from './good';
|
|
|
|
export function getGoodsList(baseID = 0, length = 10) {
|
|
return new Array(length).fill(0).map((_, idx) => genGood(idx + baseID));
|
|
}
|
|
|
|
export const goodsList = getGoodsList();
|