Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
@matthewdavi
matthewdavi
Follow
View matthewdavi's full-sized avatar

Matthew Davis matthewdavi

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

Block or report matthewdavi

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more aboutblocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more aboutreporting abuse.

Report abuse

PinnedLoading

  1. connect-four-monorepoconnect-four-monorepoPublic

    connect four stuff, oops

    TypeScript

  2. 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.
    2
    It's a nice way to write functions without introducing any variable declaration statements in the body */
    3
    4
    constgreaterThan=num1=>num2=>num1<num2;
    5
    constnot=fn=>(...args)=>!fn(...args);
  3. Recursive react componentRecursive 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?
    2
    JSX is just sugar for function calls (React.createElement). */
    3
    4
    constFib:React.FC<{
    5
    start?:number;

[8]ページ先頭

©2009-2025 Movatter.jp