@practica/create-node-app
Version:
Create Node.js app that is packed with best practices AND strive for simplicity
8 lines (6 loc) • 323 B
text/typescript
// ️️️✅ Best Practice: Use services for scoped and specific pieces of business logic
function determinePaymentTerms(requestedTerms: number, userId: number) {
// In real-world app, more logic and even integrations will come here
return 30 || requestedTerms + userId;
}
export default { determinePaymentTerms };