mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 22:24:37 +08:00
DISABLE_THIRD_PARTY_CHECK=new npm module causes package-lock change We can get rid of a custom script and use ESLint for these rules. Additionally this means editors will highlight the issue in the editor. Change-Id: I552b52e7f07b4e7430b3f685dbc3b5fad36ffff2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2052167 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
import _curry3 from './internal/_curry3.js';
|
|
|
|
/**
|
|
* `o` is a curried composition function that returns a unary function.
|
|
* Like [`compose`](#compose), `o` performs right-to-left function composition.
|
|
* Unlike [`compose`](#compose), the rightmost function passed to `o` will be
|
|
* invoked with only one argument. Also, unlike [`compose`](#compose), `o` is
|
|
* limited to accepting only 2 unary functions. The name o was chosen because
|
|
* of its similarity to the mathematical composition operator ∘.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.24.0
|
|
* @category Function
|
|
* @sig (b -> c) -> (a -> b) -> a -> c
|
|
* @param {Function} f
|
|
* @param {Function} g
|
|
* @return {Function}
|
|
* @see R.compose, R.pipe
|
|
* @example
|
|
*
|
|
* const classyGreeting = name => "The name's " + name.last + ", " + name.first + " " + name.last
|
|
* const yellGreeting = R.o(R.toUpper, classyGreeting);
|
|
* yellGreeting({first: 'James', last: 'Bond'}); //=> "THE NAME'S BOND, JAMES BOND"
|
|
*
|
|
* R.o(R.multiply(10), R.add(10))(-4) //=> 60
|
|
*
|
|
* @symb R.o(f, g, x) = f(g(x))
|
|
*/
|
|
var o = /*#__PURE__*/_curry3(function o(f, g, x) {
|
|
return f(g(x));
|
|
});
|
|
export default o; |