Skip to content

Improve docstring for array fill methods #43627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/es2015.core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface Array<T> {
findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down
4 changes: 2 additions & 2 deletions src/lib/es2020.bigint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ interface BigInt64Array {
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down Expand Up @@ -436,7 +436,7 @@ interface BigUint64Array {
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down
18 changes: 9 additions & 9 deletions src/lib/es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,7 @@ interface Int8Array {
every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down Expand Up @@ -2058,7 +2058,7 @@ interface Uint8Array {
every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down Expand Up @@ -2340,7 +2340,7 @@ interface Uint8ClampedArray {
every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down Expand Up @@ -2621,7 +2621,7 @@ interface Int16Array {
every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down Expand Up @@ -2903,7 +2903,7 @@ interface Uint16Array {
every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down Expand Up @@ -3185,7 +3185,7 @@ interface Int32Array {
every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down Expand Up @@ -3467,7 +3467,7 @@ interface Uint32Array {
every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down Expand Up @@ -3748,7 +3748,7 @@ interface Float32Array {
every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down Expand Up @@ -4031,7 +4031,7 @@ interface Float64Array {
every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;

/**
* Returns the this object after filling the section identified by start and end with value
* Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
Expand Down