-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
feat: add includes()
method to array/fixed-endian-factory
#3283
base: develop
Are you sure you want to change the base?
feat: add includes()
method to array/fixed-endian-factory
#3283
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Hi there! 👋
And thank you for opening your first pull request! We will review it shortly. 🏃 💨
Coverage Report
The above coverage report was generated for the changes in this PR. |
@ahmad-kashkoush the title should start with "feat:" |
includes()
method to array/fixed-endian-factory
includes()
method to array/fixed-endian-factory
Done, may you review PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahmad-kashkoush A few suggestions regarding the documentation, otherwise looks good. A more thorough review will be done by the maintainers. Also you should remove the parenthesis after includes
in the title.
|
||
#### TypedArrayFE.prototype.includes( searchElement\[, fromIndex] ) | ||
|
||
Returns `true` if element can be found. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returns `true` if element can be found. | |
Returns `true` if the specified `searchElement` is present in the array. |
// returns true | ||
``` | ||
|
||
If `searchElement` is not present in the array, the method returns `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If `searchElement` is not present in the array, the method returns `false`. | |
If the specified `searchElement` is not present in the array, the method returns `false`. |
@@ -675,6 +675,47 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli | |||
} | |||
return -1; | |||
}); | |||
/** | |||
* A boolean value which is true if the value `searchElement` is found. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* A boolean value which is true if the value `searchElement` is found. | |
* Returns `true` if the specified `searchElement` is present in the array. |
Resolves #3145 .
Description
This pull request:
Related Issues
This pull request:
includes
method toarray/fixed-endian-factory
#3145Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers