UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

12 lines (11 loc) 362 B
export default castSlice; /** * Casts `array` to a slice if it's needed. * * @private * @param {Array} array The array to inspect. * @param {number} start The start position. * @param {number} [end=array.length] The end position. * @returns {Array} Returns the cast slice. */ declare function castSlice(array: any[], start: number, end?: number): any[];