Skip to content

Instantly share code, notes, and snippets.

@kigiri
Last active August 25, 2020 23:41
Show Gist options
  • Save kigiri/43c4188e97931881e5c7ef9f0affe016 to your computer and use it in GitHub Desktop.
Save kigiri/43c4188e97931881e5c7ef9f0affe016 to your computer and use it in GitHub Desktop.
frameworkless workflow spa pwa serverless JSON blockchain
const append = (p, ...n) => (p.append(...n.flat()), p)
const create = new Proxy((t,...c)=>append(Object.assign(document.createElement(t),c[0]&&c[0]==Object?c.shift():void 0),...c),{get:(f,t)=>(...c)=>f(t,...c)})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment