Skip to content

Use native Object.assign for shallow merges in Util.extend #763

@kamranayub

Description

@kamranayub

Context

We have a utility, extend that supports deep merging. For shallow merges, however, it should use the new Object.assign native functionality (for perf/compatibility). Currently only IE11 is lacking it.

Proposal

Update Util.extend method to use Object.assign where available on shallow merges.

Metadata

Metadata

Assignees

Labels

enhancementLabel applied to enhancements or improvements to existing featuresgood first issuegood for people new to open source and Excalibur

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions