I’m attempting to iterate through all the entries in an Object.
All the how-to guides seem to suggest using Object.entries() but I’m getting an error that no such function exists.
I’m initially forming the object as a PHP array from an SQL DB, then dumping the PHP array into Javascript Object using:
<script type="javascript">var libr = <?php echo json_encode($library); ?>;</script>
I’ve added a screenshot showing the object’s structure in a console window, and the specific error when I attempt to call .entries() on it:
What am I missing?