Title: Array.prototype.filter() - JavaScript | MDN
Open Graph Title: Array.prototype.filter() - JavaScript | MDN
Description: The filter() method of Array instances creates a shallow copy of a portion of a given array, filtered down to just the elements from the given array that pass the test implemented by the provided function.
Open Graph Description: The filter() method of Array instances creates a shallow copy of a portion of a given array, filtered down to just the elements from the given array that pass the test implemented by the provided function.
Opengraph URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
Domain: developer.mozilla.org
IPv4 address: 151.101.129.91
| og:locale | en_US |
| og:image | https://developer.mozilla.org/mdn-social-image.46ac2375.png |
| og:image:type | image/png |
| og:image:height | 1024 |
| og:image:width | 1024 |
| og:image:alt | The MDN logo |
| og:site_name | MDN Web Docs |
| twitter:card | summary |
| twitter:creator | MozDevNet |
| position | 6 |
Links:
| Server | Google Frontend |
| Content-Type | text/html |
| Via | 1.1 google, 1.1 varnish, 1.1 varnish, 1.1 varnish |
| Cache-Control | public, max-age=3600 |
| Last-Modified | Tue, 24 Nov 2026 00:57:30 GMT |
Viewport: width=device-width, initial-scale=1.0