key-of.js 337 B

1234567891011
  1. "use strict";
  2. module.exports = function (t, a) {
  3. var x = {}, y = {}, o = { foo: "bar", raz: x, trzy: "cztery", five: "6" };
  4. a(t(o, "bar"), "foo", "First property");
  5. a(t(o, 6), null, "Primitive that's not there");
  6. a(t(o, x), "raz", "Object");
  7. a(t(o, y), null, "Object that's not there");
  8. a(t(o, "6"), "five", "Last property");
  9. };