Skip to content

Commit

Permalink
Updating signature of merge()
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jul 27, 2015
1 parent 5f65f6a commit 3dce2c1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions lib/haro.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @copyright 2015
* @license BSD-3-Clause
* @link http://haro.rocks
* @version 1.4.12
* @version 1.4.13
*/
"use strict";

Expand Down Expand Up @@ -84,8 +84,8 @@ function iterate (obj, fn) {
}

function merge (a, b) {
let c = clone(a),
d = clone(b);
let c = a !== undefined ? clone(a) : a,
d = b !== undefined ? clone(b) : b;

if ((c instanceof Object) && (d instanceof Object)) {
Object.keys(d).forEach(function (i) {
Expand Down Expand Up @@ -885,7 +885,7 @@ function factory (data = null, config = {}, indexes = []) {
return new Haro(data, config, indexes);
}

factory.version = "1.4.12";
factory.version = "1.4.13";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
Expand Down
8 changes: 4 additions & 4 deletions lib/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @copyright 2015
* @license BSD-3-Clause
* @link http://haro.rocks
* @version 1.4.12
* @version 1.4.13
*/
"use strict";

Expand Down Expand Up @@ -90,8 +90,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}

function merge(a, b) {
var c = clone(a),
d = clone(b);
var c = a !== undefined ? clone(a) : a,
d = b !== undefined ? clone(b) : b;

if (c instanceof Object && d instanceof Object) {
Object.keys(d).forEach(function (i) {
Expand Down Expand Up @@ -1002,7 +1002,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
return new Haro(data, config, indexes);
}

factory.version = "1.4.12";
factory.version = "1.4.13";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
Expand Down
2 changes: 1 addition & 1 deletion lib/haro.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/haro.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haro",
"version": "1.4.12",
"version": "1.4.13",
"description": "Harō is a modern immutable DataStore using Maps, Sets, Promises, & Tuples",
"main": "lib/haro.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ function iterate (obj, fn) {
}

function merge (a, b) {
let c = clone(a),
d = clone(b);
let c = a !== undefined ? clone(a) : a,
d = b !== undefined ? clone(b) : b;

if ((c instanceof Object) && (d instanceof Object)) {
Object.keys(d).forEach(function (i) {
Expand Down

0 comments on commit 3dce2c1

Please sign in to comment.