I'm writing a lot of JavaScript (and TypeScript!). But all of the public JavaScript I have on here is old and embarrassing. I'm certainly much better now
- New York
- https://matthewdavis.co
Block or Report
Block or report matthewdavi
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
default params as a form of "let bin...
default params as a form of "let binding" 1/* I've been thinking about default params a bit. And how you can use earlier params as values in the default params.2It's a nice way to write functions without introducing any variable declaration statements in the body */34const greaterThan = num1 => num2 => num1 < num2;
5const not = fn => (...args) => !fn(...args);
-
Recursive react component
Recursive react component 1/* I haven't seen anyone write about this, but I thought about it this morning in the shower and it works, why wouldn't it?2JSX is just sugar for function calls (React.createElement). */34const Fib: React.FC<{
5start?: number;
-
1 contribution in the last year
| Day of Week | February Feb | March Mar | April Apr | May May | June Jun | July Jul | August Aug | September Sep | October Oct | November Nov | December Dec | January Jan | February Feb | ||||||||||||||||||||||||||||||||||||||||
| Sunday Sun | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Monday Mon | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Tuesday Tue | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Wednesday Wed | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Thursday Thu | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Friday Fri | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturday Sat | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Less
No contributions.
Low contributions.
Medium-low contributions.
Medium-high contributions.
High contributions.
More

