Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@flow
- export default function createProduct(name: string, price: number): Object {
- return {
- id: Math.floor((Math.random() * 10) + 1),
- name: name,
- price: price,
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement