4 * Checks if the object is a primitive
6 function isPrimitive(value) {
7 // Using switch fallthrough because it's simple to read and is
8 // generally fast: http://jsperf.com/testing-value-is-primitive/5
9 switch (typeof value) {
19 module.exports = isPrimitive;