added sale-price

This commit is contained in:
2026-03-07 16:09:22 +03:30
parent 2e4389e311
commit d4ddc1f987
4991 changed files with 489998 additions and 7072 deletions
+22
View File
@@ -0,0 +1,22 @@
import baseSlice from './_baseSlice.js';
/**
* Gets all but the last element of `array`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Array
* @param {Array} array The array to query.
* @returns {Array} Returns the slice of `array`.
* @example
*
* _.initial([1, 2, 3]);
* // => [1, 2]
*/
function initial(array) {
var length = array == null ? 0 : array.length;
return length ? baseSlice(array, 0, -1) : [];
}
export default initial;