.grep() 过滤数组

最后更新于:2022-04-02 03:22:46

[TOC] ## .grep() ### 示例 ``` let arr =[0,1,2]; let arr1= $.grep( arr, function(n){ return n > 0; }); console.log(arr1); // 1,2 ```
';