Checks if the input is a primitive.
检查输入是否为原始值。
The value to check. 要检查的值
True if the value is a primitive, false otherwise. 如果值为原始值则返回 true,否则返回 false
isPrimitive(42) // => trueisPrimitive({}) // => false Copy
isPrimitive(42) // => trueisPrimitive({}) // => false
Checks if the input is a primitive.
检查输入是否为原始值。