JSFiddle - React, Tailwind, and code Playground

by igalst

JavaScript

(function() {
	var myFunc = fuction(angular, ko) {
		// my function implementation
	};

	if (typeof require !== "undefine") {
		require(["angular", "ko"], myFunc);
	} else {
		if (typeof angular === "undefine") {
			console.error("need angular");
			return;
		}
		
		if (typeof ko === "undefine") {
			console.error("need ko");
			return;
		}
		
		myFunc(angular, ko);
	}
})();