Skip to content

sapondanaisriwan/quick-arrow-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Arrow Snippets

Overview

"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.

preview

Features

  • Efficiency: Save time by easily inserting commonly used arrow function patterns.
  • Versatility: Adapt to different coding scenarios with a variety of snippet options.

Language Support

  • JavaScript
  • JavaScript-react
  • TypeScript
  • TypeScript-react

Snippet Abbreviations

Abbreviation Meaning
q Quick
a Arrow Function
aa Async Arrow Function
v Variable
p Parameters

All Snippets

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

Contributing

Contributions are welcome! If you have additional arrow function patterns or improvements, feel free to submit a pull request.

License

This project is licensed under the MIT License.