🏡
wfh
- remote
Pinned Loading
-
ES6 Curry
ES6 Curry 1export const curry = (fn) => {
2const r = (args) => {
3if (args.length >= fn.length) {
4return fn(...args);
5}
-
lenses.ts
lenses.ts 1const has = <T extends object>(property: keyof T) => (obj: T) => !!obj[property];
2const head: <T>(array: T[]) => T | undefined = (array) => array[0];
3const prop = <T>(property: keyof T) => (object: T) => object[property];
4const path = (bits: string[]) => (object: any): any => {
5const [property, ...rest] = bits;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.