Created
July 23, 2016 19:15
-
-
Save Dionid/d0b80e0d6cd5910e69f8f24720cae963 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
findActiveInput(input:ISearchInput){ | |
let res, | |
actInpt = undefined; | |
// Функция .forEach синхронная | |
res = this.activeInputs.forEach((inp) => { | |
console.log(inp); | |
// inp почему-то array а не отдельный элемент массива activeInputs | |
inp.forEach(inputt =>{ | |
if(inputt === input){ | |
actInpt = inp; | |
} | |
}); | |
}); | |
} | |
return actInpt; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment