Created
February 21, 2022 10:55
-
-
Save exuanbo/3bfbdeede342ad57ff3e444e06ec8f36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const unary = | |
<T, R>(fn: (arg1: T, ...args: unknown[]) => R) => | |
(arg1: T): R => | |
fn(arg1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment