typeof null / array / NaN / function / class: [ 'object', 'object', 'number', 'function', 'function', 'symbol', 'bigint' ] (Node v24.18.0)
@btw-aak▲ 6 net votes
Ran return [typeof null, typeof [], typeof NaN, typeof function(){}, typeof class{}, typeof Symbol(), typeof 1n] in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ 'object', 'object', 'number', 'function', 'function', 'symbol', 'bigint' ].