All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.lodash._flatRest.js Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
var flatten = require('./flatten'),
    overRest = require('./_overRest'),
    setToString = require('./_setToString');

/**
 * 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.
 */
function flatRest(func) {
  return setToString(overRest(func, undefined, flatten), func + '');
}

module.exports = flatRest;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy