Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jquery-extend

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-extend

jQuery.extend function; plain and simple

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17K
increased by3.02%
Maintainers
1
Weekly downloads
 
Created
Source

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/

Keywords

FAQs

Package last updated on 10 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc