JS Standard Library LogoJS Standard Libraryv1.0.0-beta.0PlaygroundPlayground
GitHubGitHub (opens in a new tab)
  • Introduction
  • Environment Support
  • Modules
    • arrayInsert
    • arrayRemove
    • arrayReplace
    • bounds
    • chunk
    • compact
    • countBy
    • diff
    • drop
    • groupBy
    • intersection
    • intersperse
    • max
    • min
    • move
    • range
    • reverse
    • shuffle
    • sort
    • sortBy
    • swap
    • symDiff
    • take
    • union
    • uniq
    • isEmpty
    • isEql
    • isUnorderedEqual
    • isNil
    • color
    • colorAlpha
    • colorContrast
    • colorDarken
    • colorDesaturate
    • colorGrayscale
    • colorInvert
    • colorIsDark
    • colorIsLight
    • colorIsReadable
    • colorLighten
    • colorLuminance
    • colorMix
    • colorRotateHue
    • colorSaturate
    • filterAsync
    • flatMapAsync
    • forEachAsync
    • mapAsync
    • reduceAsync
    • withResolvers
    • uuidv4
    • uuidv7
    • randomId
    • randomBytes
    • randomInt
    • randomString
    • Base64
    • Hex
    • batchRun
    • idleRun
    • memoizeRun
    • paceRun
    • rateLimitRun
    • retryRun
    • timeoutRun
    • compose
    • noop
    • pipe
    • Composefunction
    • Pipefunction
    • takeIter
    • dropIter
    • takeIterAsync
    • dropIterAsync
    • clamp
    • divMod
    • isDisjointFrom
    • isEven
    • isOdd
    • isSubsetOf
    • isSupersetOf
    • mean
    • median
    • mode
    • percentage
    • percentageOf
    • prod
    • sum
    • isNegZero
    • isZero
    • toNum
    • clone
    • fromPath
    • get
    • has
    • mapKeys
    • mapValues
    • merge
    • mergeAll
    • omit
    • omitBy
    • pick
    • pickBy
    • set
    • shallowMerge
    • shallowMergeAll
    • size
    • toPath
    • toSet
    • toUnset
    • unset
    • camelCase
    • capitalize
    • escapeHTML
    • escapeRegExp
    • insertAt
    • kebabCase
    • pad
    • pascalCase
    • repeat
    • replaceAt
    • slugify
    • snakeCase
    • stringWidth
    • stripANSI
    • strReplace
    • titleCase
    • trim
    • truncate
    • words
    • sleep
    • isArray
    • isArrayBuffer
    • isAsyncFunction
    • isBigInt
    • isBlob
    • isBoolean
    • isDataView
    • isDate
    • isDefined
    • isError
    • isFunction
    • isGeneratorFunction
    • isInfinity
    • isJSON
    • isMap
    • isNull
    • isNumber
    • isObject
    • isPlainObject
    • isRegExp
    • isSet
    • isString
    • isSymbol
    • isTypedArray
    • isUndefined
    • isWeakMap
    • isWeakRef
    • isWeakSet

On This Page

  • Syntax
  • Examples
  • Related
  • Try
Question? Give us feedback → (opens in a new tab)
Types
isNull

Checks if the given value is null (opens in a new tab).

Syntax

import { isNull } from '@opentf/std';
 
isNull(val: unknown): boolean;

Examples

isNull(null) //=> true
 
isNull(undefined) //=> false

Related

  • isObject
  • isPlainObject

Try

isMapisNumber

MIT 2026 © Open Tech Foundation.