Skip to content

Instantly share code, notes, and snippets.

View MapleLove2014's full-sized avatar
🎯
Focusing

maplelove MapleLove2014

🎯
Focusing
View GitHub Profile
@MapleLove2014
MapleLove2014 / extend.js
Created November 14, 2018 07:08 — forked from hectormenendez/extend.js
jQuery.extend
jQuery.extend = jQuery.fn.extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,
deep = false;
// Handle a deep copy situation
if ( typeof target === "boolean" ) {
deep = target;