Skip to content

isPrimitive

Checks if the given value is primitive

97 bytes

Usage

Checks if the given value is primitive.

Primitive Types: number , string , boolean , symbol, bigint, undefined, null

import * as _ from 'radashi'
_.isPrimitive(22) // => true
_.isPrimitive('hello') // => true
_.isPrimitive(['hello']) // => false