Skip to content

Instantly share code, notes, and snippets.

@madroneropaulo
madroneropaulo / .block
Created May 7, 2020 00:24 — forked from john-guerra/.block
GeoJson map of Colombia Municipios
license: mit
@madroneropaulo
madroneropaulo / flattener.js
Created June 28, 2019 21:03
Array Flattener
function flattenArray(nestedArray) {
const flatArr = [];
function flattenerFunc (arr) {
arr.forEach(el => {
if (Array.isArray(el)) {
flattenerFunc(el);
} else {
flatArr.push(el);
}