mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 06:04:55 +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>
26 lines
811 B
JavaScript
26 lines
811 B
JavaScript
import _curry1 from './internal/_curry1.js';
|
|
import converge from './converge.js';
|
|
|
|
/**
|
|
* juxt applies a list of functions to a list of values.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.19.0
|
|
* @category Function
|
|
* @sig [(a, b, ..., m) -> n] -> ((a, b, ..., m) -> [n])
|
|
* @param {Array} fns An array of functions
|
|
* @return {Function} A function that returns a list of values after applying each of the original `fns` to its parameters.
|
|
* @see R.applySpec
|
|
* @example
|
|
*
|
|
* const getRange = R.juxt([Math.min, Math.max]);
|
|
* getRange(3, 4, 9, -3); //=> [-3, 9]
|
|
* @symb R.juxt([f, g, h])(a, b) = [f(a, b), g(a, b), h(a, b)]
|
|
*/
|
|
var juxt = /*#__PURE__*/_curry1(function juxt(fns) {
|
|
return converge(function () {
|
|
return Array.prototype.slice.call(arguments, 0);
|
|
}, fns);
|
|
});
|
|
export default juxt; |