build(deps-dev): apply updates
[benchmarks-js.git] / is-undefined.mjs
CommitLineData
4676a95c 1import { bench, group, run } from 'tatami-ng'
adad2e80 2
ab9a08f3
JB
3group('Is undefined', () => {
4 bench('=== undefined', (value = undefined) => {
adad2e80 5 return value === undefined
ab9a08f3
JB
6 })
7 bench("typeof === 'undefined'", (value = undefined) => {
adad2e80 8 return typeof value === 'undefined'
adad2e80 9 })
ab9a08f3
JB
10})
11
12await run({
ebf80fe4 13 units: true,
ab9a08f3 14})