const merge = require('lodash.merge');

const set = (object, property, value) =>
  merge({}, object, { [property]: value });

const logJSON = json => console.log(JSON.stringify(json, null, 2));

const testRegex = (regex, string) => new RegExp(regex).test(string);

module.exports = {
  set,
  logJSON,
  testRegex,
};

@@ -258,16 +258,106 @@
 ring);%0A%0A
+const randomString = length =%3E%0A  Math.random()%0A    .toString(36)%0A    .substr(2, length);%0A%0A
 module.e
@@ -398,11 +398,27 @@
 tRegex,%0A
+  randomString,%0A
 %7D;%0A

Implement randomString()