在 JavaScript 中实现像 Array.prototype.filter() 函数这样的自定义函数