Monday, 27 March 2023

java script functions

 

Flattening nested arrays

const arr1 = [1, 2, [3, 4]];
arr1.flat();
// [1, 2, 3, 4]

const arr2 = [1, 2, [3, 4, [5, 6]]];
arr2.flat();
// [1, 2, 3, 4, [5, 6]]

const arr3 = [1, 2, [3, 4, [5, 6]]];
arr3.flat(2);
// [1, 2, 3, 4, 5, 6]

const arr4 = [1, 2, [3, 4, [5, 6, [7, 8, [9, 10]]]]];
arr4.flat(Infinity);
// [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

Saturday, 18 March 2023

flutter tips

1. swap with perent means remove previous wrap imp


flutter emulators

flutter emulators --launch <emulator id>

Wednesday, 1 March 2023

Flutter links

 https://www.youtube.com/@createdbykoko


https://zetcode.com/csharp/filterlist/

React

 https://youtu.be/SSXA2XluIBU


https://youtu.be/7QseojHf30k

c#

 https://github.com/dcyuksel/Result