Skip to content

Commit 26d3c29

Browse files
authored
Create README.md
1 parent 4debd18 commit 26d3c29

File tree

1 file changed

+9
-0
lines changed
  • Modern Development/ECMASCript 2021/Server-side ECMAScript 2021 examples/filter

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## `filter()` Method
2+
3+
The `filter()` method creates a **new array** with all elements that pass the condition implemented by the provided function.
4+
5+
### Syntax
6+
7+
array.filter((element, index, array) {
8+
// return true to keep the element, false otherwise
9+
});

0 commit comments

Comments
 (0)