Difference between find and filter

后端 未结 8 1021
花落未央
花落未央 2020-12-09 09:19

I have recently jumped into the world of jQuery. I saw the methods find() and filter() but can not figure out the difference between the two.

8条回答
  •  悲&欢浪女
    2020-12-09 09:43

    .find() will look and stop after the first match, whereas, .filter() will continue searching through the entire array

提交回复
热议问题