https://www.runoob.com/jsref/jsref-obj-array.html
supplement:
grep() method: The $.grep() function uses the specified function to filter the elements in the array and returns the filtered array.
For details, refer to: https://www.runoob.com/jquery/misc-grep.html