nequal undefined

Benchmark created on


Description

Check what is faster foo !== undefined to typeof foo !== 'undefined'

Setup

const defined = {};
const notDefined = undefined;

Test runner

Ready to run.

Testing in
TestOps/sec
not equal defined
defined !== undefined
ready
typeof defined
typeof defined !== 'undefined'
ready
not equal undefined
notDefined !== undefined
ready
type of undefined
typeof notDefined !== 'undefined'
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.