faster typeof test