Skip to main content
Module

x/rambda/source/mean.spec.js

Faster and smaller alternative to Ramda
Latest
File
import { mean } from './mean.js'
test('happy', () => { expect(mean([ 2, 7 ])).toBe(4.5)})
test('with NaN', () => { expect(mean([])).toBeNaN()})