Skip to content

Commit

Permalink
Update json.js
Browse files Browse the repository at this point in the history
  • Loading branch information
abumq committed Sep 6, 2023
1 parent 7c117b0 commit 8fbbe04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const json = (val, opts = {}) => {
/**
* Flags the field to be spreaded in resulting JSON.
*/
const spread = () => SPREAD_KEY_NAME + Math.random();
const spread = (uid = '') => SPREAD_KEY_NAME + uid + Math.random();

module.exports.json = json;
module.exports.spread = spread;

0 comments on commit 8fbbe04

Please sign in to comment.