Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Today’s After Effects Modern Javascript Expression is the Spread Operator

  • Today’s After Effects Modern Javascript Expression is the Spread Operator

    Posted by Roland R. kahlenberg on May 23, 2025 at 12:40 pm

    Today’s After Effects Modern Javascript Expression is the Spread Operator.

    The Spread Operator provides a shorthand way to write out an array. It’s also easily readable and works well for find the Minimum or Maximum values in an Array.

    // Start of Expression
    const tableValues = [250,500,200];

    // Use spread to pass the elements of sliderValues as individual arguments
    const minValue = Math.min(…tableValues);
    minValue;

    // End of Expression

    // Start of Expression
    const firstArray = [1, 2, 3];
    const secondArray = [4, 5, 6];

    const combinedArray = […firstArray, …secondArray];
    combinedArray;

    // End of Expression

    Roland R. kahlenberg replied 1 month ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy