主题
检查给定值是否为原始类型。
原始类型:number(数字), string(字符串), boolean(布尔值), symbol(符号), bigint(大整数), undefined(未定义), null(空值)
import { isPrimitive } from 'radash' isPrimitive(22) // => true isPrimitive('hello') // => true isPrimitive(['hello']) // => false