We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3bf5f7 commit a87e420Copy full SHA for a87e420
packages/browser-repl/src/components/shell.tsx
@@ -338,8 +338,8 @@ export const Shell = ({
338
339
const onInput = useCallback(
340
async (code: string) => {
341
- const newOutput = (output ?? []).slice();
342
- const newHistory = (history ?? []).slice();
+ const newOutput = [...output ?? []];
+ const newHistory = [...history ?? []];
343
344
// don't evaluate empty input, but do add it to the output
345
if (!code || code.trim() === '') {
0 commit comments