find() method returns the value of the first element in the array that satisfies the provided testing function. Otherwise undefined is returned.
npm install @extendscript/aes.patch.array.find
You can test the code against a range of targets:
npm run test target-1 target-2
We keep a log of test results