Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function foo(x: Item[], y: object): boolean {
- x.forEach((a) => {
- let c = false;
- if (a.name === y.name) {
- console.log('dupa');
- c = true;
- }
- if (c === false) {
- console.log(2);
- return false;
- }
- });
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement