If the function we passed to the findIndex() method never returns a truthy value, the method returns -1 . Alternatively, you can use the Array.map() method.
確定! 回上一頁