두 함수 모두 Array.prototype의 메서드이다. filter 주어진 함수 테스트를 통과하는 모든 요소를 모아 새로운 배열로 반환 developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/filter Array.prototype.filter() - JavaScript | MDN filter() 메서드는 주어진 함수의 테스트를 통과하는 모든 요소를 모아 새로운 배열로 반환합니다. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive exampl developer..