Mehedi Hassan Piash | Senior Software Engineer | Android | iOS | KMP | Ktor | Jetpack Compose | React-Native.

November 09, 2019

React native PATH variable set up in Mac

November 09, 2019 Posted by Piash No comments
Enter the given line to your Mac terminal   nano ~/.bash_profile   or   nano ~/.zshrc   Copy and past given line to your bash_profile file           export ANDROID_HOME=~/Library/Android/sdk/  export PATH=$PATH:~/android-sdks/platform-tools/  export PATH=$PATH:~/android-sdks/tools/  export PATH=$PATH:~/android-sdks/tools/adb cltr...

November 02, 2019

The Rest/Spread Operator in JavaScript

November 02, 2019 Posted by Piash No comments
One of the most interesting features added to ES2015 was the spread operator. This operator makes copying and merging arrays a lot simpler. Rather than calling the concat() or slice() method, you could use the ... operator: const arr1 = [10, 20, 30]; // make a copy of arr1 const copy = [...arr1]; console.log(copy); // → [10, 20, 30] const arr2 = [40, 50]; // merge...