Skip to content

Commit

Permalink
Rebuild dist/*
Browse files Browse the repository at this point in the history
  • Loading branch information
chbrown committed Mar 13, 2021
1 parent 16ff06f commit 3b0b611
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
7 changes: 6 additions & 1 deletion dist/rfc6902.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
/**
Recursively copy a value.
@param source - should be a JavaScript primitive, Array, or (plain old) Object.
@param source - should be a JavaScript primitive, Array, Date, or (plain old) Object.
@returns copy of source where every Array and Object have been recursively
reconstructed from their constituent elements
*/
Expand All @@ -144,6 +144,11 @@
}
return arrayTarget;
}
// Date
if (source.constructor == Date) {
const dateTarget = new Date(+source);
return dateTarget;
}
// Object
const objectTarget = {};
// declaring the variable (with const) inside the loop is faster
Expand Down
33 changes: 16 additions & 17 deletions dist/rfc6902.min.js

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

0 comments on commit 3b0b611

Please sign in to comment.