Wrong filter description
See original GitHub issueDescribe the Issue
This page incorrectly says that filter keeps elements when the callback returns the Boolean value true. This is incorrect, any element that results in a truthy return value is retained.
Affected Page
Expected behavior
The line:
filter
calls a function on each element of an array and returns a new array containing only the elements for which that function returnstrue
.
Should be replaced with the line:
filter
calls a function on each element of an array and returns a new array containing only the elements for which that function returns a truthy value - that is, a value which returnstrue
if passed to theBoolean()
constructor.
Screenshots
No response
System
All
Additional context
Issue Analytics
- State:
- Created 10 months ago
- Comments:22 (22 by maintainers)
Top Results From Across the Web
Can the Incorrect Air Filter Shorten Engine Life?
The wrong air filter will not protect your engine. Its frame will not match up to the mounting points on your engine, leaving...
Read more >Filter by Value Transform Function - Wrong Match Description
Using Grafana Enterprise, Transform function “Filter data by values”, a condition has the wrong description associated with it.
Read more >IV85984: MULTIPLE REPORTS FILTERS ARE SHOWING ...
Error description. In the report/query setup, the setting of the Filter Operator is 'Equals' for Number Type fields, when the report/query is run, ......
Read more >FILTER function - Microsoft Support
The FILTER function filters an array based on a Boolean (True/False) array. ... Notes: An array can be thought of as a row...
Read more >What is content filtering and how does it work? - TechTarget
Filtering software can screen content for anything that is objectionable or criminal, including online porn, hate sites, illegal content and social media.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep that should be fine.
I’ll go ahead and open this up to contribution, then.
I think we may be splitting hairs on this.