MCPcopy
hub / github.com/vercel/hyper / flatRest

Function flatRest

bin/yarn-standalone.js:13582–13584  ·  view source on GitHub ↗

* A specialized version of `baseRest` which flattens the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @returns {Function} Returns the new function.

(func)

Source from the content-addressed store, hash-verified

13580 * @returns {Function} Returns the new function.
13581 */
13582 function flatRest(func) {
13583 return setToString(overRest(func, undefined, flatten), func + '');
13584 }
13585
13586 /**
13587 * Creates an array of own enumerable property names and symbols of `object`.

Callers 3

createFlowFunction · 0.85
createOverFunction · 0.85
yarn-standalone.jsFile · 0.85

Calls 1

overRestFunction · 0.85

Tested by

no test coverage detected