Property 'entries' does not exist on type 'ObjectConstructor'

后端 未结 2 909
盖世英雄少女心
盖世英雄少女心 2020-11-29 07:09

I\'m working on an ng2 implementation. I\'m using the following function call to convert an object to an array:

var authors = Object.entries(responseObject.A         


        
2条回答
  •  北海茫月
    2020-11-29 07:36

    The accepted answer didn't work for me, but I adapted the answer from Property 'assign' does not exist on type 'ObjectConstructor' like this:

    const changedFields = (Object).entries(this.ngForm.form.controls)
                                       .filter(value => value[1].dirty);
    

    Sharing for anyone with the same situation

提交回复
热议问题