This package has been deprecated

Author message:

this package has been deprecated

jquery-extend

2.0.3 • Public • Published

jquery-extend

The point of this module is to provide the most up-to-date version of jQuery's .extend function for server-side use.

This function's operation is 100% backed by jQuery's own testing suite.

The API is identical to jQuery.extend

Example

var extend = require("jquery-extend");
var a = {a: {b: "c", d: "e"}};
var b = {a: {b: "x", f: "g"}};
 
// shallow copy
extend({}, a, b);       //=> {a: {b: "x", f: "g"}}
 
// deep copy
extend(true, {}, a, b); //=> {a: {b: "x", d: "e", f: "g"}}

Tests

Test suite depends on qunit

$ npm test

License

Copyright 2013 jQuery Foundation and other contributors http://jquery.com/

/jquery-extend/

    Package Sidebar

    Install

    npm i jquery-extend

    Weekly Downloads

    16,814

    Version

    2.0.3

    License

    MIT

    Last publish

    Collaborators

    • dnukem