P
Size: a a a
P
P
I
I
I
P
КК
'use strict';
function someSlice(begin, end) {
if (typeof begin !== 'number') begin = 0;
if (typeof end !== 'number') end = this.length;
if (begin > this.length) return [];
if (begin < 0) begin += this.length;
if (end < 0) end += this.length;
const result = [];
for (let i = begin; i < end; i++) result[result.length] = this[i];
return result;
}
Array.prototype.slice = someSlice;
console.log( [1,2,3,4,5].slice(1,-2) );
I
оЧ
T
S
T
Ты такая абоба, я худею, а ещё чунга-чанга
S
T
VK
VK
P
VK
P