Merge pull request #20658 from jvanbruegge/patch-1

ramda: Add applyTo (WIP)
This commit is contained in:
Nathan Shively-Sanders
2017-11-14 11:18:54 -08:00
committed by GitHub
+7
View File
@@ -243,6 +243,13 @@ declare namespace R {
*/
applySpec<T>(obj: any): (...args: any[]) => T;
/**
* Takes a value and applies a function to it.
* This function is also known as the thrush combinator.
*/
applyTo<T, U>(el: T, fn: (t: T) => U): U;
applyTo<T>(el: T): <U>(fn: (t: T) => U) => U;
/**
* Makes an ascending comparator function out of a function that returns a value that can be compared with < and >.
*/