Skip to content
Snippets Groups Projects
Commit 1df42268 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Aha! null is an object that isn't an Object!

var x = null;
if (typeof x == 'object')
	print(Object.keys(x).join(', '));
parent d42f2ea7
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ function TickITCfg() { ...@@ -51,7 +51,7 @@ function TickITCfg() {
function lcprops(obj) function lcprops(obj)
{ {
if(typeof obj == 'object' && !Array.isArray(obj)) { if(typeof obj == 'object' && obj !== null) {
var i; var i;
var keys = Object.keys(obj); var keys = Object.keys(obj);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment