MCPcopy Index your code
hub / github.com/deployd/deployd / flatRest

Function flatRest

test-app/public/sinon.js:16471–16473  ·  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

16469 * @returns {Function} Returns the new function.
16470 */
16471 function flatRest(func) {
16472 return setToString(overRest(func, undefined, flatten), func + '');
16473 }
16474
16475 /**
16476 * Creates an array of own enumerable property names and symbols of `object`.

Callers 3

createFlowFunction · 0.85
createOverFunction · 0.85
sinon.jsFile · 0.85

Calls 1

overRestFunction · 0.85

Tested by

no test coverage detected