Skip to content
View smidhonza's full-sized avatar
🏡
wfh
🏡
wfh

Organizations

@CzechHackathon2013
Block or Report

Block or report smidhonza

Block user

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

You must be logged in to block users.

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

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

Report abuse

Pinned

  1. ES6 Curry ES6 Curry
    1
    export const curry = (fn) => {
    2
      const r = (args) => {
    3
        if (args.length >= fn.length) {
    4
          return fn(...args);
    5
        }
  2. flsy/fputils flsy/fputils Public

    a bunch of useful utility functions

    TypeScript

  3. flsy/meta flsy/meta Public

    TypeScript

  4. lenses.ts lenses.ts
    1
    const has = <T extends object>(property: keyof T) => (obj: T) => !!obj[property];
    2
    const head: <T>(array: T[]) => T | undefined = (array) => array[0];
    3
    const prop = <T>(property: keyof T) => (object: T) => object[property];
    4
    const path = (bits: string[]) => (object: any): any => {
    5
        const [property, ...rest] = bits;