I'd like to iterate over the properties and functions of any kind of a javascript object(IDBKeyRange in this case).
I tried using the following code :-
<script type="text/javascript"> var arr = Object.getOwnPropertyNames(IDBKeyRange.only(43)); for(var i=0;i<arr.length;i++) { document.write(arr[i]+"</br>"); } </script> However, it fails to show me a list of properties and methods -- what am I doing wrong?