(obj)
| 4 | import { json } from 'milliparsec' |
| 5 | |
| 6 | const isEmptyObject = (obj) => Object.keys(obj).length === 0 && obj.constructor === Object |
| 7 | |
| 8 | const hasPostProps = (obj) => Object.keys(obj).every((x) => ['name', 'description', 'price', 'quantity'].includes(x)) |
| 9 |