uppy/packages/@uppy/utils/src/findIndex.js
Antoine du Hamel 9866fc1f5c @uppy/utils: remove ponyfill for Array#findIndex (#3080)
The built-in method is supported everywhere.
2021-08-09 16:12:51 +02:00

6 lines
157 B
JavaScript

/**
* @param {Array} array
* @param {Function} predicate
* @returns {number}
*/
module.exports = Function.prototype.call.bind(Array.prototype.findIndex)