Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

angular.copy return [undefined] when copy undefined to array #8610

Closed
@wingyplus

Description

@wingyplus
var a = [1,2,3];
angular.copy(undefined, a); // it's returned [undefined, undefined, undefined]

In document said

If source is not an object or array (inc. null and undefined), source is returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions