Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. findActiveInput(input:ISearchInput){
  2. let res,
  3. actInpt = undefined;
  4.  
  5. // Функция .forEach синхронная
  6. res = this.activeInputs.forEach((inp) => {
  7. console.log(inp);
  8. // inp почему-то array а не отдельный элемент массива activeInputs
  9. inp.forEach(inputt =>{
  10. if(inputt === input){
  11. actInpt = inp;
  12. }
  13. });
  14. });
  15. }
  16.  
  17. return actInpt;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement