Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement