selfcontained / deap Goto Github PK
View Code? Open in Web Editor NEWextend and merge objects, deep or shallow, in javascript
License: MIT License
extend and merge objects, deep or shallow, in javascript
License: MIT License
I can haz? Who wrote this junk?
Symbols can be used as property keys, but they are ignored.
const deap = require('deap');
const mySymbol = Symbol('mySymbol');
const x = { value: 42, [mySymbol]: 'hello' };
console.log(x);
// { value: 42, [Symbol(mySymbol)]: 'hello' }
const y = deap.clone(x);
console.log(y);
// { value: 42 }
// expected: { value: 42, [Symbol(mySymbol)]: 'hello' }
var a = new A();
var myObj = deap({ key1 : 'value1' }, { key2 : a });
We noticed that myObj.key2 is not an instance of A
anymore.
Hello @Prestaul @selfcontained,
I'm a security researcher at Snyk and there might be an issue in this package.
Since it hasn't been updated for quite some time - are you the ones owning it? if so, is there a private way to reach you guys and discuss it?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.