Skip to content

Array concatenating adds undefined #11

@makmonty

Description

@makmonty

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 ] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions