<templateSet group="JavaScript">
  <template name="aeach" value="$ARRAY$.forEach(function(element, i, collection){&#10;  $END$&#9;&#9;&#9;&#9;&#10;});" description="Invoke callback on elements of array" toReformat="true" toShortenFQNames="true">
    <variable name="ARRAY" expression="" defaultValue="" alwaysStopAt="true" />
    <context>
      <option name="JS_STATEMENT" value="true" />
    </context>
  </template>
</templateSet>
Add config for array.forEach() live template
IntelliJ: Add config for array.forEach() live template
