This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function flattenResult (target, opts) { | |
opts = opts || {} | |
var delimiter = opts.delimiter || '.' | |
var maxDepth = opts.maxDepth | |
var output = {} | |
function step (object, prev, currentDepth) { | |
currentDepth = currentDepth || 1 | |
Object.keys(object).forEach(function (key) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Read more about this program in the official Elm guide: | |
-- https://guide.elm-lang.org/architecture/effects/time.html | |
module App exposing (..) | |
import Html exposing (Html) | |
import Svg exposing (..) | |
import Svg.Attributes exposing (..) | |
import Time exposing (Time, second) |