Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array concatenating adds undefined #11

Open
makmonty opened this issue Aug 10, 2017 · 0 comments
Open

Array concatenating adds undefined #11

makmonty opened this issue Aug 10, 2017 · 0 comments

Comments

@makmonty
Copy link

When I merge two objects with an array attribute, the resulting object contains that array merged but with an extra undefined element:

var extend = require('extendify')({arrays: 'concat'});
var obj = extend({}, {a: [1,2]}, {a:[3,4]});
console.log(obj);
-> { a: [ undefined, 1, 2, 3, 4 ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant