crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript Arrays</h2> <p>The Array.find() method returns the value of the first element in an array that passes a test (provided by a function).</p> <p id="demo"></p> <script> const ages = [3, 10, 18, 20]; document.getElementById("demo").innerHTML = ages.find(checkAge); function checkAge(age) { return age > 18; } </script> <p>The Array.find() method is not supported in Internet Explorer.</p> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+SmF2YVNjcmlwdCBBcnJheXM8L2gyPg0KDQo8cD5UaGUgQXJyYXkuZmluZCgpIG1ldGhvZCByZXR1cm5zIHRoZSB2YWx1ZSBvZiB0aGUgZmlyc3QgZWxlbWVudCBpbiBhbiBhcnJheSB0aGF0IHBhc3NlcyBhIHRlc3QgKHByb3ZpZGVkIGJ5IGEgZnVuY3Rpb24pLjwvcD4NCg0KPHAgaWQ9ImRlbW8iPjwvcD4NCg0KPHNjcmlwdD4NCmNvbnN0IGFnZXMgPSBbMywgMTAsIDE4LCAyMF07DQoNCmRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJkZW1vIikuaW5uZXJIVE1MID0gYWdlcy5maW5kKGNoZWNrQWdlKTsNCg0KZnVuY3Rpb24gY2hlY2tBZ2UoYWdlKSB7DQogIHJldHVybiBhZ2UgPiAxODsNCn0NCjwvc2NyaXB0Pg0KDQo8cD5UaGUgQXJyYXkuZmluZCgpIG1ldGhvZCBpcyBub3Qgc3VwcG9ydGVkIGluIEludGVybmV0IEV4cGxvcmVyLjwvcD4NCg0KPC9ib2R5Pg0KPC9odG1sPg==