code: function clone(obj) {
    // Shallow copy
    if (Array.isArray(obj)) return Array.prototype.slice.call(obj);
    var clone = {};
    for (var name in obj) { clone[name] = obj[name]; }
    return clone;
  }
docs: helpers