Skip to content

Instantly share code, notes, and snippets.

const Table = styled.table`
margin-right: 8px; // <-- flipping does work
td {
text-align: left; // <-- flipping does not work
}
`
///////
const assert = require("assert");
/**
* Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4].
*/
function flattenArray(array) {
if (!Array.isArray(array)) {
throw new Error("Array expected");
}
const assert = require("assert");
/**
* Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4].
*/
function flattenArray(array) {
if (!Array.isArray(array)) {
throw new Error("Array expected");
}
$debug: false;
@if $debug {
div[class] {
box-sizing: border-box;
border: 3px ridge lightgrey;
}
}
atomSettings