Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add a "digit" filter

Open
#161 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
angular, javascript
Domain
frontend

Research direction

Look for existing filter definitions in the repository, likely in a file like angular-filter.js or a filters directory. The new 'digit' filter should parse a string, remove non-digit characters, and return an integer. Test by adding the filter to the codebase and verifying it works with the example '1,234,567' -> 1234567. Check if there are existing tests for filters to follow the same pattern.

Written by the indexing model from the issue text.

Description

Needs-Feedback

How about to having a filter to convert number-like-string to digits?
Angular supports "number" filter to format numbers with fraction. Maybe it is good to have a filter for opposite conversion.

{{"1,234,567"|digit}} // get 1234567

If you like it, I can send you a PR. Thanks.

Dominant language
JavaScript
Stars
2.9k
Forks
319
PR merge metrics
No merged PRs in 30d

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from a8m/angular-filter

All issues in a8m/angular-filter

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.