Skip to content

Instantly share code, notes, and snippets.

Abhijeet Bajracharya abizit

Block or report user

Report or block abizit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cferdinandi
cferdinandi / extend.js
Last active Sep 29, 2019
A native JS extend() function.
View extend.js
/**
* Merge defaults with user options
* @private
* @param {Object} defaults Default settings
* @param {Object} options User options
* @returns {Object} Merged values of defaults and options
*/
var extend = function ( defaults, options ) {
var extended = {};
var prop;
You can’t perform that action at this time.