I hereby claim:
- I am ashwell on github.
- I am ashwe1l (https://keybase.io/ashwe1l) on keybase.
- I have a public key ASB2ErWRJOIZGGbfLCnD8idFVpDEaCQAy20ZpZ55NzLCSAo
To claim this, I am signing this object:
interface Todo { | |
thing: string; | |
done: boolean; | |
} | |
interface TodoProps {} | |
export function Todo(props: TodoProps) { | |
const todos = []; |
export function curry( fn, arity = fn.length ) { | |
let args = []; | |
return function curriedFn( ...newArgs ) { | |
args = [ ...args, ...newArgs ]; | |
if ( args.length >= arity ) { | |
return fn( ...args ); | |
} | |
I hereby claim:
To claim this, I am signing this object:
class SimpleMath { | |
constructor( n ) { | |
this.n = n; | |
} | |
static given( n ) { | |
return new SimpleMath( n ); | |
} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="description" content="Fullscreen Coding Challenge"> | |
<title>JS Bin</title> | |
<script src="https://cdn.rawgit.com/zloirock/core-js/master/client/shim.min.js"></script> | |
<style id="jsbin-css"> | |
.vertical-form-group label, | |
.vertical-form-group select, |
export default function flatten(arrayOfArrays=[]){ | |
function* flatgen() { | |
for( let item of arrayOfArrays ) { | |
if ( Array.isArray( item )) { | |
yield* flatten(item) | |
} else { | |
yield item | |
} | |
} |
'use strict'; | |
var | |
tmpEvent, | |
createEvent, | |
createWithConstructor, | |
createWithInit; | |
createWithConstructor = function( name, descriptor ) { | |
return new CustomEvent( name, descriptor ); | |
}; |