|
|
|
@ -9599,7 +9599,7 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
|
|
|
|
|
})( window );/** |
|
|
|
|
* @license |
|
|
|
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
|
|
|
* Build: `lodash core plus="debounce,throttle,get,findIndex,findLastIndex,findKey,findLastKey,isArrayLike,invert,invertBy,uniq,uniqBy,omit,omitBy,zip,unzip,range"` |
|
|
|
|
* Build: `lodash core plus="debounce,throttle,get,findIndex,findLastIndex,findKey,findLastKey,isArrayLike,invert,invertBy,uniq,uniqBy,omit,omitBy,zip,unzip,rest,range"` |
|
|
|
|
* Copyright JS Foundation and other contributors <https://js.foundation/>
|
|
|
|
|
* Released under MIT license <https://lodash.com/license>
|
|
|
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
|
|
@ -16223,6 +16223,39 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
|
|
|
|
|
return before(2, func); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates a function that invokes `func` with the `this` binding of the |
|
|
|
|
* created function and arguments from `start` and beyond provided as |
|
|
|
|
* an array. |
|
|
|
|
* |
|
|
|
|
* **Note:** This method is based on the |
|
|
|
|
* [rest parameter](https://mdn.io/rest_parameters).
|
|
|
|
|
* |
|
|
|
|
* @static |
|
|
|
|
* @memberOf _ |
|
|
|
|
* @since 4.0.0 |
|
|
|
|
* @category Function |
|
|
|
|
* @param {Function} func The function to apply a rest parameter to. |
|
|
|
|
* @param {number} [start=func.length-1] The start position of the rest parameter. |
|
|
|
|
* @returns {Function} Returns the new function. |
|
|
|
|
* @example |
|
|
|
|
* |
|
|
|
|
* var say = _.rest(function(what, names) { |
|
|
|
|
* return what + ' ' + _.initial(names).join(', ') + |
|
|
|
|
* (_.size(names) > 1 ? ', & ' : '') + _.last(names); |
|
|
|
|
* }); |
|
|
|
|
* |
|
|
|
|
* say('hello', 'fred', 'barney', 'pebbles'); |
|
|
|
|
* // => 'hello fred, barney, & pebbles'
|
|
|
|
|
*/ |
|
|
|
|
function rest(func, start) { |
|
|
|
|
if (typeof func != 'function') { |
|
|
|
|
throw new TypeError(FUNC_ERROR_TEXT); |
|
|
|
|
} |
|
|
|
|
start = start === undefined ? start : toInteger(start); |
|
|
|
|
return baseRest(func, start); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates a throttled function that only invokes `func` at most once per |
|
|
|
|
* every `wait` milliseconds. The throttled function comes with a `cancel` |
|
|
|
@ -18300,6 +18333,7 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
|
|
|
|
|
lodash.once = once; |
|
|
|
|
lodash.pick = pick; |
|
|
|
|
lodash.range = range; |
|
|
|
|
lodash.rest = rest; |
|
|
|
|
lodash.slice = slice; |
|
|
|
|
lodash.sortBy = sortBy; |
|
|
|
|
lodash.tap = tap; |
|
|
|
|