UNPKG

customer-segmentation

Version:

Customer segmentation according to the revenue|spend they made within the network

20 lines (17 loc) 461 B
const Customer = require("./customer"); function customerSegment({ name, revenue, city, networkOperator, age }) { const customer = new Customer( (name = name), (revenue = revenue), (city = city), (networkOperator = networkOperator), (age = age) ); // Execution segmentation for current customer customer.behaviorSegment(); customer.marketSegment(); return customer } module.exports = { customerSegment: customerSegment, };