Skip to main content
Module

x/rambda/mean.spec.js

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