Skip to content

Commit

Permalink
sharing parameter by value
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmehta committed Nov 22, 2023
1 parent c19f6b7 commit 635fa54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/platform/src/utils/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { format } from "d3-format";
import config from "../config";
import { searchExamples, pppSearchExamples } from "../pages/HomePage/searchExamples";

function pickTwo(arr) {
function pickTwo([...arr]) {
const i1 = Math.floor(Math.random() * arr.length);
const resultArray = arr.splice(i1, 1);
const i2 = Math.floor(Math.random() * arr.length);
Expand Down

0 comments on commit 635fa54

Please sign in to comment.