ES6 utility for comparing and validating primitives array, boolean, function, number, object, string, symbol, null, undefined.