ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Function Calling by ForEach()


Hello all,

I am facing an issue in Function Calling from JS.

I want to call a function recursively for a list of arguments.

user_id_list.forEach(function(user_id_list,index) {
TeamAccuracy(i, user_id_list);


use_id_list =[“”,“”]
TeamAccuracy : Function name

problem is that argument list has two arguments but forEach() is calling this function only once.