is-uniq.js 350 B

1234567891011
  1. "use strict";
  2. module.exports = function (t, a) {
  3. var x = {};
  4. a(t.call([]), true, "Empty");
  5. a(t.call({}), true, "Empty lists");
  6. a(t.call([1, x, "raz"]), true, "Uniq");
  7. a(t.call([1, x, 1, "raz"]), false, "Not Uniq: primitive");
  8. a(t.call([1, x, "1", "raz"]), true, "Uniq: primitive");
  9. a(t.call([1, x, 1, {}, "raz"]), false, "Not Uniq: Obj");
  10. };