JAVASCRIPT   13

some.js

Guest on 9th June 2021 04:15:29 AM

  1. 'use strict';
  2.  
  3. var Set = require('../../');
  4.  
  5. module.exports = function (t, a) {
  6.       a(t.call(new Set(), Boolean), false, "Empty set");
  7.       a(t.call(new Set([2, 3, 4]), Boolean), true, "All true");
  8.       a(t.call(new Set([0, false, 4]), Boolean), true, "Some false");
  9.       a(t.call(new Set([0, false, null]), Boolean), false, "All false");
  10. };

Raw Paste


Login or Register to edit or fork this paste. It's free.