JSFiddle - React, Tailwind, and code Playground

by Scott Kaye

JavaScript

console.clear();

(function (notify, undefined) {
    var defaults = {
        message: null,
        error: false,
        refresh: false,
        options: []
    };
    
    var current;
    
    function extend(o1, o2) {
        for (var prop in o2)
        if (o1.hasOwnProperty(prop)) o2[prop] = o1[prop];
        return o2;
    }

    notify.show = function (options) {
        options = extend(options || {}, defaults);
        
    };
}(window.notify = window.notify || {}));

notify.show({
    message: "test"
});