MCPcopy Index your code
hub / github.com/Packstack-Tech/packstack / csvItems

Function csvItems

api/utils/build-payload.js:36–41  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

34};
35
36export function csvItems(items) {
37 return items.map(item => {
38 const { name, product_name, weight, weight_unit, price, Category: { name: category } } = item;
39 return { name, product_name, category, weight, weight_unit, price };
40 })
41}

Callers 2

item.jsFile · 0.90
pack.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected