key-of.js 341 B

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