extend
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "extend", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Port of jQuery.extend for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "./index", |
@@ -5,2 +5,10 @@ # extend() for Node.js | ||
## Installation | ||
This package is available on [NPM](https://npmjs.org/) as: `extend` | ||
``` sh | ||
npm install extend | ||
``` | ||
## Usage | ||
@@ -12,7 +20,5 @@ | ||
If no target is specified, the JQuery namespace itself is extended. This can be useful for plugin authors wishing to add new methods to JQuery. | ||
Keep in mind that the target object will be modified, and will be returned from extend(). | ||
If a boolean true is specified as the first argument, JQuery performs a deep copy, recursively copying any objects it finds. Otherwise, the copy will share structure with the original object(s). | ||
If a boolean true is specified as the first argument, extend performs a deep copy, recursively copying any objects it finds. Otherwise, the copy will share structure with the original object(s). | ||
Undefined properties are not copied. However, properties inherited from the object's prototype will be copied over. | ||
@@ -19,0 +25,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
44
0
3929