"Quick Arrow Snippets" is a handy collection of arrow function snippets designed to enhance your coding experience. These snippets are tailored for quick insertion into your code, helping you write concise and efficient arrow functions without the need to retype common structures.
- Efficiency: Save time by easily inserting commonly used arrow function patterns.
- Versatility: Adapt to different coding scenarios with a variety of snippet options.
- JavaScript
- JavaScript-react
- TypeScript
- TypeScript-react
Abbreviation | Meaning |
---|---|
q |
Quick |
a |
Arrow Function |
aa |
Async Arrow Function |
v |
Variable |
p |
Parameters |
A list of all available snippets and the prefix of each one.
Prefix | Description | Result |
---|---|---|
qa |
Generic Arrow Function | () => {expression} |
qav |
Arrow Function Variable | const func = () => {expression} |
qavp |
Arrow Function Variable with Parameters | const func = (params) => {expression} |
qap |
Arrow Function with Parameters | (params) => {expression} |
qsa |
Short Arrow Function | () => expression |
qsap |
Short Arrow Function with Parameters | (params) => expression |
qaa |
Generic Async Arrow Function | async () => {expression} |
qaav |
Async Arrow Function Variable | const func = async () => {expression} |
qaavp |
Async Arrow Function Variable with Parameters | const func = async (params) => {expression} |
qaafp |
Async Arrow Function with Parameters | async (params) => {expression} |
saaf |
Short Async Arrow Function with Parameters | async () => expression |
qsaafp |
Short Async Arrow Function with Parameters | async (params) => expression |
Contributions are welcome! If you have additional arrow function patterns or improvements, feel free to submit a pull request.
This project is licensed under the MIT License.