|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
457 bytes
|
| Line | |
|---|
| 1 | var flatten = require('./flatten'),
|
|---|
| 2 | overRest = require('./_overRest'),
|
|---|
| 3 | setToString = require('./_setToString');
|
|---|
| 4 |
|
|---|
| 5 | /**
|
|---|
| 6 | * A specialized version of `baseRest` which flattens the rest array.
|
|---|
| 7 | *
|
|---|
| 8 | * @private
|
|---|
| 9 | * @param {Function} func The function to apply a rest parameter to.
|
|---|
| 10 | * @returns {Function} Returns the new function.
|
|---|
| 11 | */
|
|---|
| 12 | function flatRest(func) {
|
|---|
| 13 | return setToString(overRest(func, undefined, flatten), func + '');
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | module.exports = flatRest;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.