You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I personally think that we should be pushing to use existing JavaScript functions as much as possible which'll make code more compact and in my opinion easier to read.
I've noticed that in
DynamicDataTable.jsx
getFields
there is a lot offor
loops. I feel that this can be written nicer by using pre-existing JavaScript functions such asArray.prototype.forEach
. I think the logic can also be simplified.Here's what I've come up with:
Here's what is there:
I personally think that we should be pushing to use existing JavaScript functions as much as possible which'll make code more compact and in my opinion easier to read.
Thoughts?
cc @DivineOmega @wheatleyjj
The text was updated successfully, but these errors were encountered: