Skip to content

(null)

null literal

clojure
(null)

Examples

Find variables initialized to null before refactoring to use undefined or optional chaining.

clojure
(var _ null)

Selects in lines { 1, 3 } but not in { 2 }:

typescript
let user = null
let config = undefined
const data = null

Locate null checks to replace with optional chaining.

clojure
(bin === _ null)

Selects in lines { 1 } but not in { 2, 3 }:

typescript
if (user === null) { }
if (data !== null) { }
if (value === undefined) { }

Copyright © 2022-present Semantic Works, Inc.