Sunday, June 28, 2020

Good Haskell books for beginners

Good Haskell books for beginners:
1) REAL WORLD HASKELL!
2) "Get programming with Haskell" by Will Kurt

Flatten a Javascript object

https://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objects
https://www.npmjs.com/package/flat

Take a nested Javascript object and flatten it, or unflatten an object with delimited keys.
var flatten = require('flat')
 
flatten({
    key1: {
        keyA: 'valueI'
    },
    key2: {
        keyB: 'valueII'
    },
    key3: { a: { b: { c: 2 } } }
})
 
// {
//   'key1.keyA': 'valueI',
//   'key2.keyB': 'valueII',
//   'key3.a.b.c': 2
// }

Grid.js - Advanced Table Plugin

https://gridjs.io/
Grid.js is a Free and open-source HTML table plugin written in TypeScript. It works with most JavaScript frameworks, including React, Angular.js, Vue and VanillaJs.