Skip to content

Instantly share code, notes, and snippets.

@omarkdev
Created February 20, 2020 20:27
const arr1 = [1, 2, 3, 4];
const arr1FlattedMultipliedByTwo = arr1.flatMap(v => [ v * 2 ]);
// arr1FlattedMultipliedByTwo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment