最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What is the difference between Object and object type - Stack Overflow

programmeradmin7浏览0评论

What is the difference between Object and object in angular typescript

I get a tslint error:

Don't use 'Object' as a type. Avoid using the Object type. Did you mean object?

What is the difference between Object and object in angular typescript

I get a tslint error:

Don't use 'Object' as a type. Avoid using the Object type. Did you mean object?

Share Improve this question edited May 13, 2019 at 8:01 adiga 35.3k9 gold badges65 silver badges87 bronze badges asked May 13, 2019 at 7:55 Akhil RavindranAkhil Ravindran 1212 silver badges8 bronze badges 2
  • 8 Possible duplicate of difference between object and Object in JavaScript – saurabh Commented May 13, 2019 at 7:58
  • @saurabh this is not what OP is asking about – adiga Commented May 13, 2019 at 8:03
Add a ment  | 

1 Answer 1

Reset to default 8

https://mariusschulz./blog/typescript-2-2-the-object-type

object represents any non-primitive type. The following types are considered to be primitive types in JavaScript: string, boolean, number, bigint, symbol, null, undefined.

While object (lowercased) represents all non-primitive types, Object (uppercased) describes functionality that is mon to all JavaScript objects.

发布评论

评论列表(0)

  1. 暂无评论