wip settings form

This commit is contained in:
wryk
2020-02-29 17:48:57 +01:00
parent 2cd7c63d5f
commit 977be69127
5 changed files with 125 additions and 16 deletions

View File

@@ -2,6 +2,10 @@ import getUrls from 'get-urls'
import { execPipe, asyncFilter, asyncMap, map, take, filter, asyncFlatMap, toArray } from 'iter-tools'
import { share } from '/routes.js'
const intersection = (xs, ys) => xs.filter(x => ys.includes(x))
const difference = (xs, ys) => xs.filter(x => !ys.includes(x))
const symmetricDifference = (xs, ys) => [...difference(xs, ys), ...difference(ys, xs)]
export const tap = f => x => {
f(x)
return x