functional-abstraction/measure

View on GitHub
src/0-core/2-derived/Counter.js

Summary

Maintainability
A
0 mins
Test Coverage
import {Monoids} from '../../1-api/0-Monoids.js';
import {Measure} from '../0-base/index.js';

export class Counter extends Measure {
    constructor() {
        super(Monoids.INTEGER_ADD);
    }

    measure(_element) {
        return 1;
    }
}