Skip to content

_.extend copies undefined values #123

Closed
@jzaefferer

Description

Using _.extend as part of Backbone.js I stumbled upon the problem that _.extend copies all properties, even those were the value is undefined. This makes defining and extending defaults a lot more complicated then necessary as I have to filter out manually and properties that are specified as an option, but have no value - which happens a lot when the option is passed based on some other optional argument.

For now my workaround is to replace _.extend with jQuery's $.extend. So far it looks like both are binary compatible, but I'd rather not rely on that.

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions