Comments (1)
I think the current behaviour is the correct one. Objects are hash-like, so you can overwrite it content, it's behaviour is clear. But what to do with arrays? Definitely, not append the data, since the "keys" are not the same (you are changing the indexes of the data)... Override the entries of the array with the same index (the same "key")? Override the array itself as if it was a primitive object (numbers, strings...)?
from merge.
Related Issues (20)
- Merging objects alters first argument HOT 1
- merge.recursive doesn't seem to modify non-object properties
- Don't merge undefined properties HOT 1
- Typescript definitions HOT 6
- Improve readme HOT 1
- Merging two level object deletes part. HOT 2
- Add `files` section in `package.json` for remove `tests` from package
- Is it really necessary? Can Object.assign() do the same thing in NodeJs? HOT 2
- Prototype pollution attack (merge.recursive) HOT 1
- prototype pollution HOT 1
- ES6 Module support HOT 1
- Symbol properties are ignored
- Website down HOT 1
- Security issue
- prototype pollution vulnerability HOT 1
- [vulnerability] All versions of package merge are vulnerable to Prototype Pollution via _recursiveMerge HOT 3
- version 2.x converts regular expressions to objects when cloning HOT 4
- Map is merged as an empty element
- [Vulnerability] All versions of package are vulnerable to Prototype Pollution via the main (merge) function HOT 6
- [feature] Add CLI for using via `npx` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from merge.