Skip to content

[js] 第409天 写一个方法遍历指定对象的所有属性 #2442

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第409天 写一个方法遍历指定对象的所有属性

3+1官网

我也要出题

Activity

LongLongAlready

LongLongAlready commented on May 29, 2020

@LongLongAlready

应该可以用 for in遍历可枚举属性

yangyi1987

yangyi1987 commented on Oct 8, 2020

@yangyi1987

Object.keys()

bozaigao

bozaigao commented on Dec 23, 2020

@bozaigao

Object.keys()、Object.values()只能遍历对象自有的属性,for in 可以遍历原型中的属性。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    jsJavaScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@bozaigao@LongLongAlready@yangyi1987

        Issue actions

          [js] 第409天 写一个方法遍历指定对象的所有属性 · Issue #2442 · haizlin/fe-interview