I'm seeing a number of usages of _.forEach instead of the native JS forEach function. We should use the latter if we can. If there is a good reason to use the lodash version, feel free to enlighten me. A search of the code shows 21 usages for this sim.
Example from ManualGeneExpressionModel:
_.forEach( this.offLimitsMotionSpaces, function( offLimitMotionSpace ) {
if ( bounds.intersectsBounds( offLimitMotionSpace ) ) {
// bounds.subtract( new Area( offLimitMotionSpace ) ); TODO
}
} );
I'm seeing a number of usages of
_.forEach
instead of the native JSforEach
function. We should use the latter if we can. If there is a good reason to use the lodash version, feel free to enlighten me. A search of the code shows 21 usages for this sim.Example from ManualGeneExpressionModel: