Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Export constants for npm
/**
* Add this at the end of jQueryClone.js file to export the $ function
* Check if we are using modules and export the $ function else attach it to the window object
*/
if (typeof exports != "undefined") {
exports.$ = $;
} else {
window.$ = $
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment