Proper formatting

This commit is contained in:
Ozzie Gooen 2022-08-30 18:17:00 -07:00
parent 2f77888365
commit 22458aa9e5

View File

@ -573,11 +573,11 @@ module A = {
}
let getByWithFn = (a, fn, boolCondition) => {
let i = ref(0);
let finalFunctionValue = ref(None);
let length = Belt.Array.length(a);
let i = ref(0)
let finalFunctionValue = ref(None)
let length = Belt.Array.length(a)
while (i.contents < length) && (finalFunctionValue.contents == None) {
while i.contents < length && finalFunctionValue.contents == None {
let itemWithFnApplied = Belt.Array.getUnsafe(a, i.contents) |> fn
if boolCondition(itemWithFnApplied) {
finalFunctionValue := Some(itemWithFnApplied)