Sunny pfp

Sunny

@sunny90

283 Following
197 Followers


Sunny pfp
Sunny
@sunny90
🚀 Tip: Use optional chaining to safely access deeply nested object properties: const city = user?.address?.city;
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
🚀 Tip: Use destructuring to extract values from arrays or objects: const {name, age} = person;
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
💡 Tip: Use Array.some() or Array.every() to test if some or all array elements meet a condition
1 reply
0 recast
2 reactions

Sunny pfp
Sunny
@sunny90
🔄 Tip: Use Array.reduce() to accumulate values: const total = numbers.reduce((acc, num) => acc + num, 0);
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
âš¡ Tip: Use Array.filter() to filter an array based on a condition: const evenNumbers = numbers.filter(n => n % 2 === 0);
0 reply
0 recast
1 reaction

Sunny pfp
Sunny
@sunny90
🔧 Tip: Use Array.map() to loop through and transform an array: const squared = numbers.map(n => n * n);
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
🔥 Tip: Use arrow functions for concise syntax and to avoid this binding issues: const sum = (a, b) => a + b;
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
🚀 Tip: Use template literals with backticks ` ` for easier string concatenation: let name = \Hello, ${firstName}``
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
GM, frontend. I am learning Frontend and want to share some small tip everyday. It is basic knowledge so that I want to note for myself. Tip: Use "let" and "const" instead of "var" to prevent scope issues. const for constants and let for variables that can change
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
Flutter and React Native, Which one you refer?
0 reply
0 recast
1 reaction

Sunny pfp
Sunny
@sunny90
GM, We should store private key into an encrypted keystore instead using plain text in .env #solidity #foundry
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
GM, Weekend dev
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
Nano users vs vim user
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
How to begin at Solana smart contract developer?
1 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
Love open source!
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
GM Devs. Have a nice day and compile code successful :D
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
Which video stream sdk is good for React Native?
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
Yarn or npm?
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
Why you choose Friday to push code on production? ;---;
0 reply
0 recast
0 reaction

Sunny pfp
Sunny
@sunny90
0 reply
0 recast
0 reaction