No need to reinvent the wheel, the correct way to do it is to use .find:
var firstMatch = ['a', 'b', 'c'].find(applyConditions);
If you’re using a browser that does not support .find you can polyfill it
No need to reinvent the wheel, the correct way to do it is to use .find:
var firstMatch = ['a', 'b', 'c'].find(applyConditions);
If you’re using a browser that does not support .find you can polyfill it