Returns whether the given object is primitive
the object to check
whether the given object is primitive
isPrimitive(undefined); // trueisPrimitive(true); // trueisPrimitive('foobar'); // trueisPrimitive({foo: 'bar'}); // false Copy
isPrimitive(undefined); // trueisPrimitive(true); // trueisPrimitive('foobar'); // trueisPrimitive({foo: 'bar'}); // false
Returns whether the given object is primitive