is Primitive type or not, whick means it will return true when data is number/string/boolean/undefined/null
function isPrimitive(val) {
  return isVoid(val) || isBoolean(val) || isString(val) || isNumber(val);
}