map.js 246 B

123456789101112
  1. "use strict";
  2. module.exports = function (t, a) {
  3. var obj = { 1: 1, 2: 2, 3: 3 };
  4. a.deep(
  5. t(obj, function (value, key, context) {
  6. a(context, obj, "Context argument");
  7. return value + 1 + key;
  8. }),
  9. { 1: "21", 2: "32", 3: "43" }
  10. );
  11. };