This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Sergey Ivanov
Posted Jun 25 - Read on Facebook

Hi, guys!
Is it possible to check if ALL the elements inside one array are the same state? For example, i have an array_A with checkboxes and i want the Layer_B changed its state only when ALL checkboxes inside the array_A became unchecked. Layer_B won't change it's state if at least one checkbox in array_A is still checked. Thanks!


Steve Ruiz

Try something with the lodash function every, like _.every(checkboxes, {'height', 100})

Jonas Treub

Lodash is perfect for doing this:

Read the entire post on Facebook