Skip to content

[RFC]: add @stdlib/array/base/count-same-value-zero #1326

Closed
@kgryte

Description

@kgryte

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 a value argument.

function countSameValueZero( x, value ) {...}

Internally, the package should use @stdlib/assert/is-same-value-zero to test whether an element x[i] is equal to a specified value.

Package: @stdlib/array/base/count-same-value-zero
Alias: countSameValueZero

Related Issues

Related issues #1324, #1325.

Questions

No.

Other

No.

Checklist

  • I have read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.

Metadata

Metadata

Assignees

Labels

AcceptedRFC feature request which has been accepted.FeatureIssue or pull request for adding a new feature.Good First IssueA good first issue for new contributors!JavaScriptIssue involves or relates to JavaScript.RFCRequest for comments. Feature requests and proposed changes.UtilitiesIssue or pull request concerning general utilities.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.priority: LowLow priority concern or feature request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions