UNPKG

e-lado

Version:

[![CircleCI](https://circleci.com/gh/sharetribe/sharetribe/tree/master.svg?style=svg)](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [![Dependency Status](https://gemnasium.com/sharetribe/sharetribe.png)](https://gemnasium.com/sharetribe/shar

13 lines (9 loc) 416 B
'use strict'; var aFrom = require('es5-ext/array/from') , Set = require('../../'); module.exports = function (t, a) { a.deep(aFrom(t.call(new Set(), Boolean)), [], "Empty set"); a.deep(aFrom(t.call(new Set([2, 3, 4]), Boolean)), [2, 3, 4], "All true"); a.deep(aFrom(t.call(new Set([0, false, 4]), Boolean)), [4], "Some false"); a.deep(aFrom(t.call(new Set([0, false, null]), Boolean)), [], "All false"); };