copy.js 291 B

123456789101112
  1. 'use strict';
  2. var toArray = require('es5-ext/array/to-array')
  3. , Set = require('../../');
  4. module.exports = function (t, a) {
  5. var content = ['raz', 2, true], set = new Set(content), copy;
  6. copy = t.call(set);
  7. a.not(copy, set, "Copy");
  8. a.deep(toArray(copy), content, "Content");
  9. };