UNPKG

@jeremyckahn/farmhand

Version:
6 lines (4 loc) 215 B
import { itemsMap } from '../data/maps.js' import { itemType } from '../enums.js' export const filterItemIdsToSeeds = (itemsIds: string[]): string[] => itemsIds.filter(id => itemsMap[id]?.type === itemType.CROP)