[RFC]: add @stdlib/array/base/count-same-value-zero
#1326
Labels
Accepted
RFC feature request which has been accepted.
difficulty: 2
May require some initial design or R&D, but should be straightforward to resolve and/or implement.
Feature
Issue or pull request for adding a new feature.
Good First Issue
A good first issue for new contributors!
JavaScript
Issue involves or relates to JavaScript.
priority: Low
Low priority concern or feature request.
RFC
Request for comments. Feature requests and proposed changes.
Utilities
Issue or pull request concerning general utilities.
Description
This RFC proposes adding the package
@stdlib/array/base/count-same-value-zero
.The package should be structured similarly to
@stdlib/array/base/count-truthy
.The package should expose an API having the same signature as
countTruthy
, with the addition of avalue
argument.Internally, the package should use
@stdlib/assert/is-same-value-zero
to test whether an elementx[i]
is equal to a specifiedvalue
.Package:
@stdlib/array/base/count-same-value-zero
Alias:
countSameValueZero
Related Issues
Related issues #1324, #1325.
Questions
No.
Other
No.
Checklist
RFC:
.The text was updated successfully, but these errors were encountered: