UNPKG

@guj/rif-js

Version:

Simplify filter,map and such when their use should be conditionnal

8 lines (6 loc) 354 B
const test = require("ava"); const Rif = require("../main/rif"); test('Rifs should not care about such things as splice since splice is a functional aberration', t => { const sut = Rif.of([1,2,3]); t.is(sut.spliceIf, undefined, `Splice shouldn't be a thing so spliceIf won't be either ... Yes ... that statement is highly opinionated ...`); });