JSFiddle - React, Tailwind, and code Playground

by Kieran Potts

JavaScript

function isPrimitive(test) {
        return (test !== Object(test));
    };

    alert(isPrimitive(100)); // true
    alert(isPrimitive(new Number(100))); // false