Alpine.js Playground
Table of contents

Get early access to the explanation post (out in a month) by purchasing Alpine.js Knowledge Base Membership

x-data state:

Only need the keys/ids - use Object.keys

Need keys/ids and values - use Object.entries

Need keys/ids and values - use Object.keys + lookup

Need only values - use Object.values

Need values - use Object.keys + lookup

Code