progress
This commit is contained in:
parent
e005a42254
commit
e155b4a2a1
26 changed files with 468 additions and 36 deletions
|
@ -54,7 +54,7 @@ export const ArrayExtensions = () => {
|
|||
if ([].repeat === undefined) {
|
||||
// eslint-disable-next-line no-extend-native
|
||||
Array.prototype.repeat = function (quantity) {
|
||||
return Array(quantity).fill(this[0]);
|
||||
return Array(quantity).fill(this).flat(1);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue