Skip to content

Commit bc6a985

Browse files
committed
Fix object merge snippet
1 parent 15d91c7 commit bc6a985

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ You can use these snippets along with Prettier/ESLint to have your code automati
290290
| `pi` | parse int | `parseInt(${1:value}, ${2\|10,2,8,16\|})` |
291291
| `pf` | parse float | `parseFloat(${1:value})` |
292292
| `am` | array me | `[...${1:arr}$2]$0` |
293-
| `om` | object merge | `[...${1:arr}$2]$0` |
293+
| `om` | object merge | `{ ...${1:object}$2 }$0` |
294294
| `aat` | array at | `${1:items}.at(${2:0})` |
295295
| `seq` | sequence of 0..n | `[...Array(${1:length}).keys()]$0` |
296296

src/snippets/js/uncategorized.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const uncategorized = {
1717
},
1818
om: {
1919
name: "object merge",
20-
body: "[...${1:arr}$2]$0",
20+
body: "{ ...${1:object}$2 }$0",
2121
},
2222
aat: {
2323
name: "array at",

0 commit comments

Comments
 (0)