UNPKG

als-statistics

Version:

Modular JS statistics toolkit for Node.js and the browser: descriptive stats, correlations (Pearson/Spearman/Kendall), t-tests & ANOVA (Student/Welch), reliability (Cronbach’s alpha), regression (linear/logistic), clustering (DBSCAN/HDBSCAN), and table/co

8 lines 204 B
export class Counter { constructor(name) { this._name = name; this.count = 0 } getName(name) { if(name) return name this.count++ return `${this._name}${this.count}` } }