isPrimitive
Checks if the passed value is primitive or not.
- Create an object from
val
and compare it withval
to determine if the passed value is primitive (i.e. not equal to the created object).
Checks if the passed value is primitive or not.
val
and compare it with val
to determine if the passed value is primitive (i.e. not equal to the created object).