Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
omgaz committed Oct 18, 2020
1 parent dd50739 commit 4dbec97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ var defaultOptions = {
* @param {boolean} options.respectArrayOrder Whether to care if arrays are ordered defaults to true.
* @returns {object} Nested json object of changed properties containing a from and to key.
*/
function diffler(obj1, obj2, options = defaultOptions) {
function diffler(obj1, obj2, options) {
if (typeof options === "undefined") {
options = defaultOptions;
}
var diff = {};

// Iterate over obj1 looking for removals and differences in existing values
Expand Down

0 comments on commit 4dbec97

Please sign in to comment.