const isPrimitive = val => Object(val) !== val;