|
12 | 12 | <p align="center">
|
13 | 13 | <img src="https://img.shields.io/static/v1?logo=visual-studio-code&label=made%20for&message=VS%20Code&color=0000ff" alt="Made for VSCode">
|
14 | 14 | <img src="https://img.shields.io/visual-studio-marketplace/v/robole.javascript-snippets?logo=visual-studio-code&color=ffa500" alt="Visual Studio Marketplace Version">
|
15 |
| -<img src="https://img.shields.io/static/v1?logo=visual-studio-code&label=size&message=13KB&color=008000" |
| 15 | +<img src="https://img.shields.io/static/v1?logo=visual-studio-code&label=size&message=20KB&color=008000" |
16 | 16 | alt="Extension file size in bytes">
|
17 | 17 | <img src="https://img.shields.io/visual-studio-marketplace/r/robole.javascript-snippets?logo=visual-studio-code&color=yellow" alt="Visual Studio Marketplace Rating">
|
18 | 18 | <img src="https://img.shields.io/visual-studio-marketplace/d/robole.javascript-snippets?logo=visual-studio-code&color=blue" alt="downloads"/>
|
@@ -139,31 +139,16 @@ I didn't repeat any of the builtin JavaScript snippets (see [FAQ for more](#wher
|
139 | 139 | <td>destructure array</td>
|
140 | 140 | <td>Array destructuring</td>
|
141 | 141 | <td>Assign values from array elements to new variables using destructuring.</td><td><code>const [${1:variables}] = ${2:arrayName};<br>$0<br></code></td>
|
142 |
| - |
143 |
| -</tr><tr> |
144 |
| -<td>async function</td> |
145 |
| -<td>async function</td> |
146 |
| -<td>Create an async function. Async functions can contain zero or more await expressions.</td><td><code>async function ${1:name}(${2:parameters}){<br> $3<br>}<br>$0<br></code></td> |
147 |
| - |
148 | 142 | </tr><tr>
|
149 |
| -<td>arrow function,=></td> |
150 |
| -<td>arrow function</td> |
151 |
| -<td>Creates an arrow function with optional parameters.</td><td><code>(${1:parameters}) => {<br> $2<br>}<br>$0<br></code></td> |
152 | 143 |
|
153 |
| -</tr><tr> |
154 |
| -<td>prototype function</td> |
155 |
| -<td>prototype function</td> |
156 |
| -<td>Creates an prototype function with optional parameters.</td><td><code>${1:object}.prototype.${2:name} = function(${3:parameters}) {<br> $4<br>}<br>$0<br></code></td> |
157 |
| - |
158 |
| -</tr><tr> |
159 |
| -<td>iife</td> |
160 |
| -<td>Immediately Invoked Function Expression (IIFE)</td> |
161 |
| -<td>An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined. It creates it's own local scope.</td><td><code>(function () {<br> $1<br>})();<br>$0<br></code></td> |
| 144 | +<td>json parse</td> |
| 145 | +<td>json parse</td> |
| 146 | +<td>Parses a JSON string and returns a JavaScript object.</td><td><code>let ${1:obj} = JSON.parse(${2:string});<br> $0</code></td> |
162 | 147 |
|
163 | 148 | </tr><tr>
|
164 |
| -<td>destructure object</td> |
165 |
| -<td>Object destructuring</td> |
166 |
| -<td>Assign values from object to new variables using destructuring.</td><td><code>const {${1:variables}} = ${2:objectName};<br>$0<br></code></td> |
| 149 | +<td>json stringify</td> |
| 150 | +<td>json stringify</td> |
| 151 | +<td>Convert a JavaScript object to a JSON string.</td><td><code>let ${1:string} = JSON.parse(${2:obj});<br/>$0</code></td> |
167 | 152 |
|
168 | 153 | </tr></tbody></table>
|
169 | 154 |
|
|
0 commit comments