Is function inside function bad?

no, there’s nothing wrong with that at all, and in js, it’s usually a good thing . the inside functions may not be a pure function, if they rely on closure variables. If you don’t need a closure or don’t need to worry about polluting your namespace, write it as a sibling.

Sizin İçin Seçtik  How do you pass a function as a parameter in flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *